/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String dt
= 2 + "-" + 10 + "-" + 2017; try {
Date dataInterpretada
= sdf.
parse(dt
);
System.
out.
println(""+ sdf.
format(dataInterpretada
)); e.printStackTrace();
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnRleHQuUGFyc2VFeGNlcHRpb247CmltcG9ydCBqYXZhLnRleHQuU2ltcGxlRGF0ZUZvcm1hdDsKaW1wb3J0IGphdmEudXRpbC5EYXRlOwoKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU3RyaW5nIGR0ID0gMiArICItIiArIDEwICsgIi0iICsgMjAxNzsKCQlTaW1wbGVEYXRlRm9ybWF0IHNkZiA9IG5ldyBTaW1wbGVEYXRlRm9ybWF0KCJkZC1NTS15eXl5Iik7CgkJdHJ5IHsKCQkgICAgRGF0ZSBkYXRhSW50ZXJwcmV0YWRhID0gc2RmLnBhcnNlKGR0KTsKCQkgICAgCgkJICAgIFN5c3RlbS5vdXQucHJpbnRsbigiIisgc2RmLmZvcm1hdChkYXRhSW50ZXJwcmV0YWRhKSk7CgkJfSBjYXRjaCAoUGFyc2VFeGNlcHRpb24gZSkgewoJCSAgICBlLnByaW50U3RhY2tUcmFjZSgpOwoJCX0KCX0KfQ==