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) { byte b = 65; System.out.println(Byte.toString(b)); }
From source file:Main.java
public static void main(String[] args) { System.gc(); System.out.println("Cleanup completed..."); }
From source file:Main.java
public static void main(String[] argv) { System.out.printf(Locale.UK, "%6.2f%n", 123456.7890); }
From source file:Main.java
public static void main(String[] args) { byte b = 65; System.out.println(b + ""); }
From source file:PrintfExamples.java
public static void main(String[] args) { System.out.printf("num is %s\n", 5); System.out.printf("char is %s\n", 'a'); System.out.printf("char is %S\n", 'a'); System.out.printf("bool is %s\n", true); }
From source file:Main.java
public static void main(String... args) { byte b = 2;// w ww. j a va2s . co m System.out.println(Byte.toUnsignedInt(b)); b = -2; System.out.println(Byte.toUnsignedInt(b)); }
From source file:Main.java
public static void main(String[] args) { System.out.println(File.pathSeparator); }
From source file:Main.java
public static void main(String[] args) throws Exception { System.out.println(System.getenv("PATH")); System.out.println(System.getenv("TEMP")); System.out.println(System.getenv("USERNAME")); }
From source file:Main.java
public static void main(String[] args) { byte b = 65;/* w ww. j a v a2 s. co m*/ System.out.println(new String(new byte[] { b })); }
From source file:PrintfExamples.java
public static void main(String[] args) { System.out.printf("num is %03f\n", 3.14159265); System.out.printf("num is {%07.3f}\n", 3.14); System.out.printf("06.3 num is %06.3f\n", 3.14159265); System.out.printf(".3 num is %.3f\n", 3.14159265); System.out.printf("9.99 num is %4.2f\n", 9.999999999); }