#HelloWorld

Posted on Updated on


html

java

 

 

 

 

 

 

 

#HelloWorld

This is the first post from this site.

These are a lot of examples of simple HelloWorld programs!

Java:

public class HelloWorld {
     public static void main(String[] args) {
          System.out.println("Hello World!");
     }
}
Java With Window:

import javax.swing.JFrame;  //Importing class JFrame
import javax.swing.JLabel;  //Importing class JLabel
public class HelloWorld {
        public static void main(String[] args) {
                JFrame frame = new JFrame();           //Creating frame
                frame.setTitle("Hi!");                 //Setting title frame
                frame.add(new JLabel("Hello, world!"));//Adding text to frame
                frame.pack();                          //Setting size to smallest
                frame.setLocationRelativeTo(null);     //Centering frame
                frame.setVisible(true);                //Showing frame
        }
}

Obj-C:

#import <stdio.h> 

int main(void) { 
     printf("Hello, world!\n"); 
     return 0;
}

HTML:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hi!</title>
</head>
<body>
<p>Hello, world!</p>
</body>
</html>
Advertisement

4 thoughts on “#HelloWorld

    Learn HTML5 Introduction « itech104 Programming said:
    November 14, 2013 at 3:09 PM

    […] #HelloWorld (itech104programming.wordpress.com) […]

    Java Lesson 1 « itech104 Programming said:
    November 14, 2013 at 8:10 PM

    […] #HelloWorld (itech104programming.wordpress.com) […]

    Review of HTML & Java « itech104 Programming said:
    November 14, 2013 at 9:18 PM

    […] #HelloWorld (itech104programming.wordpress.com) […]

    Learn CSS Introduction « itech104 Programming said:
    November 14, 2013 at 10:47 PM

    […] #HelloWorld (itech104programming.wordpress.com) […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s