COMP 110/401

Figure 11. println as a metrhod callFigure 12. Printing a doubleFigure 13. print vs. printlnThe println method can print not just strings but any kind of Java value. If its argument is not a string, it converts the value to an appropriate string representation. For instance, we can add another statement to setWeight to print the value of its ... ................
................