Basic printing in C is performed using the printf() and fprintf() functions. These functions print a string to either the console or to a file using format specifiers ( %lf , %s , etc.) to convert variable values to strings. The basic print functions in Java are the print() and println() methods . Every Java object has a handy method called toString() that returns a string representation of it. |