JavaRush /Blogue Java /Random-PT /Digite a data usando o teclado no formato “18/08/2013” Ex...
bro
Nível 14
Красноярск

Digite a data usando o teclado no formato “18/08/2013” Exiba esta data no formato “18 de agosto de 2013”.

Publicado no grupo Random-PT
Diga-me por que não compila no servidor? entrada e saída: 25/12/1658 25 DE DEZEMBRO DE 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());
Comentários
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION