import java.util.*; import java.text.DateFormat; public class Aeg1{ public static void main(String argumendid[]){ List nimistu=Arrays.asList(DateFormat.getAvailableLocales()); Locale keel=new Locale("et", "EE"); if(!nimistu.contains(keel))keel=Locale.GERMANY; System.out.println( DateFormat.getDateTimeInstance(DateFormat.LONG,DateFormat.LONG, keel).format(new Date()) ); } }