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
solved Questions about a Java beginners [closed]