public class Main { public static void main(String[] args) { String st; int a=10; Bath b=new Bath(); st=Integer.toString(a)+ b.castille.toString(); System.out.println(st); } } public class Bath { Soap castille; public Bath() { castille=new Soap(); } } public class Soap { /** Creates a new instance of Soap */ public Soap() { } public String toString(){ return "eimai sapouni"; } }