JavaRush /Java Blog /Random-IT /Inserisci la data utilizzando la tastiera nel formato “18...
bro
Livello 14
Красноярск

Inserisci la data utilizzando la tastiera nel formato “18/08/2013” Visualizza questa data nel formato “18 AGOSTO 2013”.

Pubblicato nel gruppo Random-IT
Dimmi perché non viene compilato sul server? ingresso e uscita: 25/12/1658 25 DIC 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());
Commenti
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION