








Output Statements:


The println( ) method or the function is used to display information on

the screen. It also provides a line feed i.e. transfers the cont rol to the next line of the output.


// Example program to utilize println( ) method



class output


{ public void display()

{int a=10;

int b=20;

int c=30;


int d=40;

System.out.println("The usage of println( ) method");

System.out.println("The value of a is "+a);


System.out.println("The value of b is "+b);

System.out.println("The value of c is "+c);
System.out.println("The value of d is "+d);
}}

attention@computerscienceexpertise.com



















