Showing posts with label programmer. Show all posts
Showing posts with label programmer. Show all posts

Saturday, July 10, 2010

Using syst.out.print sample program

This program will show how to used system.out.print to show a message or output of the program.
this is used to show ther output in screen.

here is a sample program.

import java.io.*;

public class sampleprogram
{
public static void main(String args[])
{
System.out.println("Hello World");
System.out.println("I am Jaypee Cezar");
System.out.println("I am a programmer");
System.out.print("I hope you learn in my blog");
}
}

here is the output :
Hello World
I am Jaypee Cezar
I am a programmer
I hope you learn in blog