All pastes #559541 Raw Edit

Untitled

public text v1 · immutable
·published 2007-06-11 20:07 UTC
rendered paste body
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";
    }
    
}