Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public enum Time {
- DAY(86400),
- HOUR(3600),
- MINUTE(60),
- SECOND(1);
- private int seconds;
- private Time(int seconds) {
- this.seconds = seconds;
- }
- public int S(int num) {
- return seconds * num;
- }
- }
Add Comment
Please, Sign In to add comment