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) { char myCharacter = 'X'; System.out.println(myCharacter); }
From source file:Main.java
public static void main(String[] args) { Long long1 = new Long(12345L); System.out.println(long1); }
From source file:Main.java
public static void main(String[] args) { // gets the system property System.out.println(System.getProperty("string", "java2s.com")); }
From source file:MainClass.java
public static void main(String args[]) { int n = 170;//from www. j a v a 2 s .c om System.out.println("Lowest one bit: " + Integer.lowestOneBit(n)); System.out.println("Number of leading zeros : " + Integer.numberOfLeadingZeros(n)); System.out.println("Number of trailing zeros : " + Integer.numberOfTrailingZeros(n)); System.out.println("\nBeginning with the value 1, " + "rotate left 16 times."); }
From source file:Main.java
public static void main(String[] args) { String str = "java2s.com"; System.out.println("Hash code of string is = " + str.hashCode()); }
From source file:Main.java
public static void main(String[] args) { Integer intObj1 = new Integer(10); System.out.println(intObj1); }
From source file:Main.java
public static void main(String[] args) { Runnable runnable = andThen(() -> System.out.print("Hello "), () -> System.out.print("World!")); new Thread(runnable).start(); }
From source file:Main.java
public static void main(String[] argv) { Throwable t = new Throwable(); System.out.println(t.toString()); }
From source file:Main.java
public static void main(String args[]) { int n = 10;//from ww w . j a v a2s. co m do { System.out.println("n:" + n); n--; } while (n > 0); }
From source file:Main.java
public static void main(String[] args) { System.out.println(new PropertyPermission("java.home.usr", "read").hashCode()); }