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(Integer.toOctalString(10)); }
From source file:MainClass.java
public static void main(String[] args) { System.out.printf("Scientific notation: %E\n", Math.PI); }
From source file:Main.java
public static void main(String[] args) { System.out.println(Integer.toOctalString(27)); }
From source file:MainClass.java
public static void main(String args[]) { System.out.printf("Negative floating-point default: %,f\n", -1234567.123); }
From source file:MainClass.java
public static void main(String[] args) { System.out.printf("Lowercase Hexadecimal: %a\n", Math.PI); }
From source file:Main.java
public static void main(String[] args) { System.out.println(Integer.toHexString(32)); }
From source file:Main.java
public static void main(String[] args) { System.out.println(Double.MIN_VALUE); System.out.println(Double.MAX_VALUE); }
From source file:MainClass.java
public static void main(String args[]) { System.out.printf("%+09d\n", 452); System.out.printf("%09d\n", 452); System.out.printf("% 9d\n", 452); }
From source file:Main.java
public static void main(String[] args) { System.out.println(Integer.decode("010"));// octal numbers System.out.println(Integer.decode("0XA"));// hexadecimal numbers System.out.println(Integer.decode("-0XA"));// minus hexadecimal numbers System.out.println(Integer.decode("-#A"));// minus hexadecimal numbers }
From source file:MainClass.java
public static void main(String args[]) { System.out.println(Integer.signum(10)); System.out.println(Integer.signum(-10)); System.out.println(Integer.signum(0)); }