JavaRush /Java Blog /Random EN /Enter the date from the keyboard in the format "08/18/201...
bro
Level 14
Красноярск

Enter the date from the keyboard in the format "08/18/2013" Display this date in the form "AUG 18, 2013".

Published in the Random EN group
tell me why it is not compiled on the server? input and output: 12/25/1658 DEC 25, 1658 BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String date = reader.readLine(); SimpleDateFormat s = new SimpleDateFormat("MM/dd/yyyy"); Date y = s.parse(date); SimpleDateFormat a = new SimpleDateFormat("MMM dd, yyyy", Locale.ENGLISH); System.out.println(a.format(y).toUpperCase());
Comments
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION