fork(2) download
  1. import java.text.SimpleDateFormat;
  2. import java.util.Calendar;
  3. import java.util.Locale;
  4. public class Main {
  5. public static void main(String[] args) {
  6. System.out.println("Hello World!");
  7. String []locale = {"hi", "IN"};
  8. Calendar choosenDate = Calendar.getInstance(new Locale(locale[0],locale[1]));
  9. SimpleDateFormat Dformat = new SimpleDateFormat("MMMM dd yyyy",new Locale(locale[0],locale[1]));
  10. System.out.println("MY_APP***********Newly converted date:"+ Dformat.format(choosenDate.getTime() ));
  11. }
  12. }
Success #stdin #stdout 0.06s 712192KB
stdin
Standard input is empty
stdout
Hello World!
MY_APP***********Newly converted date:सितंबर ०७ २०१६