import java.applet.Applet; import java.util.*; import java.awt.Graphics; import java.text.DateFormat; public class Aeg1Rakend extends Applet{ public void paint(Graphics g){ List nimistu=Arrays.asList(DateFormat.getAvailableLocales()); Locale keel=new Locale("et", "EE"); if(!nimistu.contains(keel))keel=Locale.GERMANY; g.drawString( DateFormat.getDateTimeInstance(DateFormat.LONG,DateFormat.LONG, keel).format(new Date()), 20, 50 ); } }