0
thisがうまくいきません
コンパイルが通りませんがどうすればいいでしょうか?
教えてください。
class a{
b b1;
a( b n ){ this.b1 = n; }
System.out.println( b1.str );
}
class b{
String str = "Kitty on your lap";
b(){
a a1 = new a( this );
}
}
class test{
public static void main( String args[] ){
b n = new b();
}
}