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:PrintfExamples.java
public static void main(String[] args) { //http://host/path System.out.printf("%1$s://%2$s/%3$s\n", "http", "host", "path"); }
From source file:Main.java
public static void main(String[] argv) { Calculator iCal = (x, y) -> x + y; System.out.println(iCal.calculate(1, 2)); }
From source file:PrintfExamples.java
public static void main(String[] args) { System.out.printf("The DATE is %tC\n", new Date()); System.out.printf("The DATE is %tz\n", new Date()); }
From source file:Main.java
public static void main(String[] args) { Boolean b = Boolean.valueOf("true"); System.out.println(b.toString()); }
From source file:Main.java
public static void main(String[] args) { System.out.println(maker(Employee::new)); }
From source file:MainClass.java
public static void main(String[] a) { double x = 27.5, y = 33.75; System.out.printf("x = %f y = %g", x, y); }
From source file:Main.java
public static void main(String[] args) { System.load("C:\\PHP\\bin\\php.exe"); System.out.println("file gets loaded..."); }
From source file:Main.java
public static void main(String[] args) { Double d = new Double("10.50"); System.out.println("Value = " + d.doubleToRawLongBits(2.5d)); }
From source file:Main.java
public static void main(String[] args) { if (args.length == 0) { System.out.println("No arguments"); } else {/*from w w w. jav a2s . c o m*/ System.out.println("Arguments:"); for (int i = 0; i < args.length; i++) { System.out.println(args[i]); } } }
From source file:Main.java
public static void main(String[] args) { StringBuffer sb = new StringBuffer(); System.out.println(sb.capacity()); }