Example usage for java.lang System out

List of usage examples for java.lang System out

Introduction

In this page you can find the example usage for java.lang System out.

Prototype

PrintStream out

To view the source code for java.lang System out.

Click Source Link

Document

The "standard" output stream.

Usage

From source file:Main.java

public static void main(String[] args) {
    Byte bObj1 = new Byte("100");
    System.out.println(bObj1);
    Byte bObj2 = Byte.valueOf("100");
    System.out.println(bObj2);/*  www . jav a2 s.  co  m*/
}

From source file:Main.java

public static void main(String[] args) {
    int exp = Math.getExponent(17.0);
    System.out.println("Math.getExponent (17.0) = " + exp);

}

From source file:Main.java

public static void main(String[] args) {
    System.out.println(System.getProperty("java.runtime.version"));

    Properties p = System.getProperties();
    p.put("java.runtime.version", "Java Runtime 1.6.0");
    System.setProperties(p);//ww w  .  ja va  2 s.c o m

    System.out.println(System.getProperty("java.runtime.version"));
}

From source file:Main.java

public static void main(String[] args) {
    int i = 0;/*from  ww  w. j a  v  a  2 s  .  c  o m*/
    int j = 100;
    System.out.println("Value of int variable i is :" + i);
    System.out.println("Value of int variable j is :" + j);
}

From source file:Main.java

public static void main(String args[]) {
    String str = "this is a test";
    System.out.println(replaceCharAt(str, 5, 'c'));
}

From source file:Main.java

public static void main(String[] args) {

    float f1 = 12, f2 = -1;

    System.out.println("absolute value of " + f1 + " = " + StrictMath.abs(f1));

    System.out.println("absolute value of " + f2 + " = " + StrictMath.abs(f2));
}

From source file:Main.java

public static void main(String[] argv) throws Exception {
    System.out.println(ByteOrder.BIG_ENDIAN.toString());
}

From source file:MainClass.java

public static void main(String args[]) {
    System.out.printf("Math.abs( 23.7 ) = %f\n", Math.abs(23.7));
    System.out.printf("Math.abs( 0.0 ) = %f\n", Math.abs(0.0));
    System.out.printf("Math.abs( -23.7 ) = %f\n", Math.abs(-23.7));
    System.out.printf("Math.ceil( 9.2 ) = %f\n", Math.ceil(9.2));
    System.out.printf("Math.ceil( -9.8 ) = %f\n", Math.ceil(-9.8));
    System.out.printf("Math.cos( 0.0 ) = %f\n", Math.cos(0.0));
    System.out.printf("Math.exp( 1.0 ) = %f\n", Math.exp(1.0));
    System.out.printf("Math.exp( 2.0 ) = %f\n", Math.exp(2.0));
    System.out.printf("Math.floor( 9.2 ) = %f\n", Math.floor(9.2));
    System.out.printf("Math.floor( -9.8 ) = %f\n", Math.floor(-9.8));
    System.out.printf("Math.log( Math.E ) = %f\n", Math.log(Math.E));
    System.out.printf("Math.log( Math.E * Math.E ) = %f\n", Math.log(Math.E * Math.E));
    System.out.printf("Math.max( 2.3, 12.7 ) = %f\n", Math.max(2.3, 12.7));
    System.out.printf("Math.max( -2.3, -12.7 ) = %f\n", Math.max(-2.3, -12.7));
    System.out.printf("Math.min( 2.3, 12.7 ) = %f\n", Math.min(2.3, 12.7));
    System.out.printf("Math.min( -2.3, -12.7 ) = %f\n", Math.min(-2.3, -12.7));
    System.out.printf("Math.pow( 2.0, 7.0 ) = %f\n", Math.pow(2.0, 7.0));
    System.out.printf("Math.pow( 9.0, 0.5 ) = %f\n", Math.pow(9.0, 0.5));
    System.out.printf("Math.sin( 0.0 ) = %f\n", Math.sin(0.0));
    System.out.printf("Math.sqrt( 900.0 ) = %f\n", Math.sqrt(900.0));
    System.out.printf("Math.sqrt( 9.0 ) = %f\n", Math.sqrt(9.0));
    System.out.printf("Math.tan( 0.0 ) = %f\n", Math.tan(0.0));
}

From source file:Main.java

public static void main(String[] args) {
    Float float2 = new Float(0.1F);

    System.out.println(float2);

}

From source file:Main.java

public static void main(String[] args) {

    String str = "123456789098765";
    System.out.println("Value = " + Long.valueOf(str, 10));
}