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[] argv) { String str = ""; System.out.println(str.length()); str = "demo2s.com"; System.out.println(str.length()); }
From source file:Main.java
public static void main(String[] args) { try {/* w w w . ja va 2s.c o m*/ System.out.println("sleep for 5 seconds."); Thread.sleep(5000); // The "main" thread will sleep System.out.println("woke up."); } catch (InterruptedException e) { System.out.println("interrupted."); } System.out.println("done."); }
From source file:Main.java
public static void main(String[] args) { System.out.println(SystemColor.DESKTOP); }
From source file:Main.java
public static void main(String[] args) { System.out.println(SystemColor.CONTROL_DK_SHADOW); }
From source file:Main.java
public static void main(String[] args) { System.out.println(SystemColor.INACTIVE_CAPTION); }
From source file:Main.java
public static void main(String[] args) { System.out.println(SystemColor.ACTIVE_CAPTION_TEXT); }
From source file:Main.java
public static void main(String[] args) { System.out.println(SystemColor.CONTROL_SHADOW); }
From source file:Main.java
public static void main(String[] args) { System.out.println(SystemColor.ACTIVE_CAPTION_BORDER); }
From source file:Main.java
public static void main(String args[]) { Main m = new Main(); System.out.println(m.getClass().getName() + " is loaded from " + m.getClass().getProtectionDomain().getCodeSource().getLocation()); }
From source file:Main.java
public static void main(String[] args) { System.out.println(SystemColor.control.getRGB()); }