Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Solution {
- public static void main(String[] args) throws Exception {
- BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
- String s = r.readLine();
- DateFormat df = new SimpleDateFormat("yyyy-MM-dd",Locale.ENGLISH);
- Date datepars;
- datepars = df.parse(s);
- SimpleDateFormat df1 = new SimpleDateFormat("dd,yyyy",Locale.ENGLISH);
- SimpleDateFormat df2 = new SimpleDateFormat("MMM",Locale.ENGLISH);
- String s1 = df1.format(datepars);
- String s2 = df2.format(datepars);
- s2.toUpperCase();
- System.out.println(s2+" "+s1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement