package lt.bit.truplemnos; public class Vykdymas { public static void main(String[] args) { Trupmena x=new Trupmena(5,1,3); Trupmena y=new Trupmena(5,2); //x.prideti(1,6); //y.prideti(1,1,3); x.prideti(y); System.out.println(x); System.out.println(y); System.out.println(y.toDouble()); } }