[Solved] Questions about a Java beginners [closed]

[ad_1]

You will need an instance of your class on which you can call toString method :

Manager m = new Manager();
...

Set the value

....
System.out.println(m.toString());

// or simply

System.out.println(m);
//this will indeed equal to call m.toString

0

[ad_2]

solved Questions about a Java beginners [closed]