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
License:asdf
public static void main(String[] argv) { System.out.println(startsWithDigitOrUpper("asdf1234")); }
From source file:Elapsed.java
public static void main(String args[]) { long start, end; System.out.println("Timing a for loop from 0 to 1,000,000"); start = System.currentTimeMillis(); // get starting time for (int i = 0; i < 1000000; i++) ;/* ww w .j a v a 2 s . co m*/ end = System.currentTimeMillis(); // get ending time System.out.println("Elapsed time: " + (end - start)); }
From source file:Main.java
public static void main(String[] argv) { String string = "animals"; System.out.println(string.charAt(0)); // a System.out.println(string.charAt(6)); // s System.out.println(string.charAt(7)); // throws exception }
From source file:MainClass.java
public static void main(String[] a) { System.out.println(Collections.singletonList("a")); System.out.println(Collections.singleton("a")); System.out.println(Collections.singletonMap("a", "b")); }
From source file:MainClass.java
public static void main(String[] arg) { String s = "\u03C0"; System.out.println(s); }
From source file:Main.java
public static void main(String args[]) { boolean booleanValue = true; System.out.printf("boolean = %s\n", String.valueOf(booleanValue)); }
From source file:Main.java
public static void main(String[] argv) throws Exception { int i = 0xf1; System.out.println("i is hex " + Integer.toHexString(i)); }
From source file:MainClass.java
public static void main(String[] a) { long longValue = 123456789L; System.out.println(longValue); }
From source file:MainClass.java
public static void main(String[] a) { long hexLongValue = 0x0FL; System.out.println(hexLongValue); }
From source file:MainClass.java
public static void main(String[] arg) { String str = "abcde"; System.out.println(str.charAt(2)); }