List of usage examples for java.lang System out
PrintStream out
To view the source code for java.lang System out.
Click Source Link
From source file:Main.java
public static void main(String[] args) { Float float3 = new Float("0.2"); System.out.println(float3); }
From source file:Main.java
public static void main(String[] args) { String str = "java2s.com"; System.out.println("string = " + str); // returns the specified subsequence from index 2 to 9 System.out.println("string subsequence = " + str.subSequence(2, 9)); }
From source file:Main.java
public static void main(String args[]) { String str = "This is a test."; System.out.println(str.replaceFirst("Th", "Ab")); }
From source file:MainClass.java
public static void main(String[] arg) { float f1 = 185.2F, f2 = 108.5F; System.out.println(f1); System.out.println(f2); }
From source file:MainClass.java
public static void main(String args[]) { Object test = null;//from w ww. j a va 2 s . c o m System.out.printf("%b\n", false); System.out.printf("%b\n", true); System.out.printf("%b\n", "Test"); System.out.printf("%B\n", test); System.out.printf("Hashcode of \"hello\" is %h\n", "hello"); System.out.printf("Hashcode of \"Hello\" is %h\n", "Hello"); System.out.printf("Hashcode of null is %H\n", test); System.out.printf("Printing a %% in a format string\n"); System.out.printf("Printing a new line %nnext line starts here"); }
From source file:MainClass.java
public static void main(String args[]) { System.out.println(Double.POSITIVE_INFINITY); }
From source file:MainClass.java
public static void main(String args[]) { System.out.println(Double.MIN_VALUE); }
From source file:Main.java
public static void main(String[] argv) { String s = "java2s.com"; System.out.println("s is " + s); s = "two\nlines"; System.out.println("s is " + s); s = "\"quotes\""; System.out.println("s is " + s); }
From source file:Main.java
public static void main(String[] args) { Boolean boolean2 = new Boolean(true); System.out.println(boolean2); }
From source file:Main.java
public static void main(String[] args) { Integer intObject = new Integer(999); System.out.println(intObject.toString()); }