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) { float f1 = 9E-28F; System.out.println(f1); }
From source file:Main.java
public static void main(String args[]) { System.out.println(new DecimalFormat("000000E0").format(123123)); }
From source file:Main.java
public static void main(String[] argv) { System.out.println(getMonthName(2)); }
From source file:Main.java
public static void main(String[] args) { boolean t = true; System.out.println("t is " + t); int x = 10;/*from ww w . ja v a 2 s.co m*/ boolean y = (x > 15); System.out.println("y is " + y); }
From source file:Main.java
public static void main(String[] argv) { String string = "animals"; System.out.println(string.length()); // 7 }
From source file:Main.java
public static void main(String[] args) { long l = 100; System.out.println("Number = " + l); System.out.println("Binary = " + Long.toBinaryString(l)); System.out.println("Number of one bits = " + Long.bitCount(l)); }
From source file:Main.java
public static void main(String[] args) { System.out.println(BigDecimal.TEN); }
From source file:Main.java
public static void main(String[] args) { int intChar = (int) '0'; System.out.println(intChar); System.out.println(Character.isDigit(intChar)); }
From source file:MainClass.java
public static void main(String[] arg) { String s = null; System.out.println(s.length()); }
From source file:Main.java
public static void main(String[] argv) { String str = "java2s.com"; System.out.println(str.substring(2)); }