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:MainClass.java
public static void main(String[] arg) { System.out.println("\\"); System.out.println("\\\\"); }
From source file:MainClass.java
public static void main(String args[]) { System.out.printf("%,d\n", 58625); System.out.printf("%,.2f\n", 58625.21); System.out.printf("%,.2f", 12345678.9); }
From source file:MainClass.java
public static void main(String args[]) { System.out.printf("Parameter list without reordering: %s %s %s %s\n", "first", "second", "third", "fourth"); System.out.printf("Parameter list after reordering: %4$s %3$s %2$s %1$s\n", "first", "second", "third", "fourth"); }
From source file:MainClass.java
public static void main(String args[]) { System.out.printf("%(d\n", 50); System.out.printf("%(d\n", -50); System.out.printf("%(.1e\n", -50.0); }
From source file:Main.java
public static void main(String[] args) { System.out.println(Float.intBitsToFloat(123)); System.out.println(Float.intBitsToFloat(0x7f800000)); System.out.println(Float.intBitsToFloat(0xff800000)); }
From source file:MainClass.java
public static void main(String args[]) { System.out.println(Integer.reverseBytes(10)); System.out.println(Integer.reverseBytes(-10)); System.out.println(Integer.reverseBytes(0)); }
From source file:Main.java
public static void main(String[] argv) { System.out.println(create().calculate(2, 2)); }
From source file:MainClass.java
public static void main(String[] args) { System.out.println(validateZip("123456")); }
From source file:MainClass.java
public static void main(String[] args) { System.out.println(validatePhone("123-456-1111")); }
From source file:MainClass.java
public static void main(String args[]) { System.out.printf("Line up positive and negative values:\n"); System.out.printf("% ,.2f\n% ,.2f\n", 1234567.123, -1234567.123); }