Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class *****
- {
- public void ***** throws IOException
- {
- int [] ntime = new int [6];
- BufferedReader inbr = new BufferedReader (new
- InputStreamReader(System.in));
- Calendar now= Calendar.getInstance();
- ntime[0] = now.get(Calendar.YEAR);
- ntime[1] = now.get(Calendar.MONTH);
- ....
- ntime[5] = now.get(Calendar.SECOND);
- }
- }
- class ***** {
- public static void main(String args[]) throws IOException
- {
- ***** objecta = new ***();
- objecta.test01();
- System.out.println("Time is " + ntime[0] + ... + ntime[5]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement