public class Proov1{ public static void main(String[] arg){ Lehm lehm1=new Lehm("Tipa", 2011); Lehm lehm2=new Lehm("Triibu", 2012); System.out.println(lehm1); System.out.println(lehm2.toString()); System.out.println("Esimese lehma vanus: "+lehm1.vanus()); System.out.println("Vanuste vahe: "+lehm1.synniaastateVahe(lehm2)); } }