[ad_1]
You aren’t actually printing the result; you’re just calling the add() method.
Try:
System.out.println(m.add());
0
[ad_2]
solved Java multiple class addition
[ad_1]
You aren’t actually printing the result; you’re just calling the add() method.
Try:
System.out.println(m.add());
0
[ad_2]
solved Java multiple class addition