Java basics
println()
Terminates the current line by writing the line separator string.
Syntax:println()
Example:import java.io.PrintWriter;
public class MainClass {
public static void main(String args[]) {
try {
PrintWriter pw = new PrintWriter(System.out);
// Experiment with some methods
pw.println(true);
pw.println('A');
pw.println(500);
pw.println(40000L);
pw.println(45.67f);
pw.println(45.67);
pw.println("Hello");
pw.println(new Integer("99"));
// Close print writer
pw.close();
} catch (Exception e) {
System.out.println("Exception: " + e);
}
}
}
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 707 / 158764371. Delta: 0.02527 с