Thanx, purtroppo in fase di compilazione mi dice:
non-static variable this cannot be referenced from a static context
B b = new B(args[0])
^
mi potresti spiegare la parte del codice
public B(String b){this.b=b;}
this.b si riferisce ad args[0]?
E un'ultima cosa (please...) quando creo l'oggetto b
B b = new B(args[0])
il programma mi esegue tutti i metodi della classe B?