Howdy!
Method void method(String s) is currently too ambiguous for the compiler... Right now your method receives a reference to a String called str, and what you do with
str = str;
is to tell
Java that you want str to reference the String that str points to. But, hey, it already does...
In your code you create two objects from the class Test026, and each has a instance variable called str. To initialize these to values other than null, you need to use the references to those objects. In other words, in an appropriate place, do the following:
t.str = str;
this.str = str;
Getting the hang of riding, yet?
/Kaspar