0% found this document useful (0 votes)
2 views1 page

Java Hello World Program Example

This Java program contains a main method that prints 8 strings to the console using System.out.println, including "Hello World!" and "SYSTEMUTVECKLARE-JAVA 2015". When run, the program outputs each of the strings in the order they were printed.

Uploaded by

api-293142610
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Java Hello World Program Example

This Java program contains a main method that prints 8 strings to the console using System.out.println, including "Hello World!" and "SYSTEMUTVECKLARE-JAVA 2015". When run, the program outputs each of the strings in the order they were printed.

Uploaded by

api-293142610
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

public class GoodFirstProgram

{
public static void main( String[] args )
{
[Link]( "Hello World!" );
[Link]( "Hello Again" );
[Link]( "I like typing this." );
[Link]( "This is fun." );
[Link]( "Yay! Printing." );
[Link]( "I'd much rather you 'not'." );
[Link]( "I \"said\" do not touch this." );
[Link]("SYSTEMUTVECKLARE-JAVA 2015");
}
}
Output:
C:\Android\chinwe\SJK2015>javac [Link]
C:\Android\chinwe\SJK2015>java GoodFirstProgram
Hello World!
Hello Again
I like typing this.
This is fun.
Yay! Printing.
I'd much rather you 'not'.
I "said" do not touch this.
SYSTEMUTVECKLARE-JAVA 2015
C:\Android\chinwe\SJK2015>

You might also like