PRG 420 Week 1 Individual Assignment Hello World Program

Create a program in Java™ that displays “Hello world!”. Either a GUI (graphic user interface) program or non-GUI program is acceptable.

Upon successful execution, you will see the words “Hello World” appears. Take a graphic screen shot that shows the program’s successful compilation and execution. Save the screen shot in a .bmp, .jpg or .gif file.

Because NetBeans produces multiple files for one project, the best method to submit an assignment is to zip the files. There should be one project folder created by NetBeans using your project name. Zip the folder. Submit your NetBeans project zip file along with the screen shot.

Note: No points will be awarded for submitting the program alone.

How to program
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
 
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.WindowConstants;
 
/**
 * The HelloWorld class implements an application that
 *  display message "Hello World!" on the screen
 */
 
public class HelloWorld {
     
    public static void main(String[] args) {
        System.out.println("Hello world!");
    }
 
}



This slideshow requires JavaScript.


This assignment includes a zip file.

  • Attachments
    • PRG-420-Week-1-Individual-Assignment.zip (149.30 KB)
      • Netbeans Project
        • HelloWorld
          • build
            • classes
              • .netbeans_automatic_build
              • .netbeans_update_resources
              • HelloWorld.class
          • build.xml
          • manifest.mf
          • nbproject
            • build-impl.xml
            • genfiles.properties
            • private
              • private.properties
              • private.xml
            • project.properties
            • project.xml
          • src
      • PRG-420-Week-1-Individual-Assignment.jpg
    Preview random excerpt
    xxxxxx xxxx.xxx.xxxxxxxxxx;
    xxxxxx xxxx.xxx.xxxxx.xxxxxxxxxxx;
    xxxxxx xxxx.xxx.xxxxx.xxxxxxxxxxxxxx;
    xxxxxx xxxxx.xxxxx.xxxxxxx;
    import javax.swing.JFrame; import javax.swing.JLabel;
    xxxxxx
    xxxxx
    .swing.WindowConstants; public class HelloWorld {
    xxxxxx
    static void main(
    xxxxxx
    []
    xxxx
    ) {
    xxxxxx
    .out.println("Hello world!"); }
    }
    - - - more text follows - - -



Purchasing Instruction
List Price: $3
Buy Now

Buy More Save More
Buy at least TWO items & save up to 30% OFF your ENTIRE order!
Rack up instant rebates in your shopping cart. Simply add items to your cart, and see the savings add up.
Discounts will automatically be applied on eligible orders.

Add to Cart

FLASH SALE

$40

$48 Save $8
PRG420 Entire Course