import java.util.*; import java.io.*; public class Tolge2 { public static void main(String argumendid[]){ ResourceBundle sonastik=ResourceBundle.getBundle( "Tolge2Sonastik", new Locale("et", "EE") ); System.out.println(sonastik.getString("hello")+", "+ sonastik.getString("name")+". "+sonastik.getString("greeting")+"."); } } class Tolge2Sonastik extends PropertyResourceBundle{ public Tolge2Sonastik() throws IOException { super(Tolge2Sonastik.class.getResourceAsStream("Tolge2Sonastik.properties")); } } class Tolge2Sonastik_et extends PropertyResourceBundle{ public Tolge2Sonastik_et() throws IOException { super(Tolge2Sonastik.class.getResourceAsStream("Tolge2Sonastik_ee.properties")); } }