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
members
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
  • Popular
  • New
  • Old
You must be signed in to leave a comment
This page doesn't have any comments yet