daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public enum Time {
  2.    DAY(86400),
  3.    HOUR(3600),
  4.    MINUTE(60),
  5.    SECOND(1);
  6.    
  7.    private int seconds;
  8.    
  9.    private Time(int seconds) {
  10.       this.seconds = seconds;
  11.    }
  12.    
  13.    public int S(int num) {
  14.       return seconds * num;
  15.    }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top