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[] args) { int n = 1023; System.out.printf("Decimal: %d\n", n); }
From source file:MainClass.java
public static void main(String[] args) { int n = 1023; System.out.printf("%x \n", n); }
From source file:Main.java
public static void main(String[] args) { System.out.println(Year.isLeap(2014)); }
From source file:Main.java
public static void main(String[] args) { System.out.println(convertToSqlDate(new Date())); }
From source file:MainClass.java
public static void main(String[] arg) { long b = 12L; System.out.println(String.valueOf(b)); }
From source file:Main.java
public static void main(String[] args) { short sval = 50; System.out.println("Value of specified short is = " + Short.toString((short) sval)); }
From source file:MainClass.java
public static void main(String[] arg) { short f = 12; System.out.println(String.valueOf(f)); }
From source file:Main.java
public static void main(String[] argv) { int f = 0XFFFFF; System.out.println(f);//1048575 }
From source file:PrintfExamples.java
public static void main(String[] args) { System.out.printf("sci not num is %e\n", 3.14159265 * 10000); System.out.printf("sci not num is %g\n", 3.14159265 * 10000); System.out.printf("sci not num is %e\n", 0.123456789); System.out.printf("sci not num is %g\n", 0.123456789); System.out.printf("sci not num is %e\n", 3000000.0); System.out.printf("hex num is %h\n", 1.0); System.out.printf("num is %h\n", 0xCAFE); }
From source file:Main.java
public static void main(String[] argv) { System.out.println(format(123123123L)); }