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) { double d1 = 0.6, d2 = 90.00; System.out.println("arc tangent value after conversion = " + StrictMath.atan2(d1, d2)); System.out.println("arc tangent value after conversion = " + StrictMath.atan2(d2, d1)); }
From source file:Main.java
public static void main(String[] args) { Long longObject = Long.decode("0Xff"); System.out.println(longObject); }
From source file:Main.java
public static void main(String[] args) { String s = "this is a test"; System.out.println(capitalize(s)); }
From source file:PrintfExamples.java
public static void main(String[] args) { //boolean value is true, TRUE System.out.printf("boolean value is %1$b, %1$B\n", true); }
From source file:Main.java
public static void main(String args[]) { for (int i = 0; i < args.length; i++) System.out.println("args[" + i + "]: " + args[i]); }
From source file:Main.java
public static void main(String[] args) { Boolean boolean1 = new Boolean("true"); System.out.println(boolean1); }
From source file:Main.java
public static void main(String[] args) { if (Integer.compare(1, 1) == 0) { System.out.println("Equals"); }/*from ww w . ja va 2 s . c o m*/ }
From source file:Main.java
public static void main(String args[]) { int mininteger = Integer.MIN_VALUE; System.out.println(mininteger); }
From source file:Main.java
public static void main(String[] argv) { char ch = 'a'; System.out.println("ch is " + ch);//ch is a ch = '@';//from w w w . ja v a 2 s . co m System.out.println("ch is " + ch);//ch is @ ch = '#'; System.out.println("ch is " + ch);//ch is # ch = '$'; System.out.println("ch is " + ch);//ch is $ ch = '%'; System.out.println("ch is " + ch);//ch is % }
From source file:Main.java
public static void main(String[] args) { String str = "java2s.com"; System.out.println("string = " + str); // returns the index within this String int retval = str.offsetByCodePoints(2, 4); // prints the index System.out.println("index = " + retval); }