Programming Assignment 0 (PS0): Preliminary Setup

This assignment gives you a chance to set up the environments and write your very first Java program. There may be several issues when you start writing your first program. Hence, we highly recommend that you do NOT wait until the last day, and that you do the assignment during office hours with the presence of a TA or the instructor so that any unexpected problems can be resolved quickly. Please check the following helpdoc and videos:

Due: 11:55 p.m., Oct. 10, Friday.

Grading rubric


Part 1. Fill out the class survey here

Part 2. Finish Java Environment Setup

Step 1: Choose one of the following ways to setup your Java environment:

NOTE: VMWare is a virtualization software that allows you to run multiple operating systems on your computer. WSL is a Linux subsystem that allows you to run Linux commands on your Windows computer.

Step 2: Install one of the following Integrated Development Environments (IDE):

  • Java IDE setup video: IntelliJ IDEA
  • Java IDE setup video: VSCode
  • You can also follow IDE setup document to achieve the installation and setup.

    NOTE: IntelliJ IDEA is an IDE written in Java for developing computer software written in Java, Kotlin, Groovy, and other JVM-based languages [1]. VSCode is a code editor that supports add-ons for several programming languages, including Java.

    Part 3. "Hello World"

    In this course, each Java file should always consist of the following three components:

  • Assignment specification (comments)
  • correct filename and assignment number
  • your name and email address
  • a list of classes defined by this file
  • time you spent on this file
  • a brief specification about this program
  • Actual class definitions
  • Create the HelloWorld.java file:

    //*******************************************************************
    //
    //   File: HelloWorld.java          Assignment No.: 0
    //
    //   Author: Your name           Email: Your Email Address
    //
    //   Class: HelloWorld
    // 
    //   Time spent on this problem: x hour
    //   --------------------
    //      This program prints a string called "Hello World!".
    //
    //*******************************************************************
      
      
    public class HelloWorld 
    {
       public static void main(String[] args) 
       {
          System.out.println("Hello World!");
       } // end of method main   
    } // end of class HelloWorld

    Compile HelloWorld.java and run the program.


    Reference

    1. IntelliJ IDEA. (2025, September 27). In Wikipedia. Retrieved September 27, 2025, from https://en.wikipedia.org/wiki/IntelliJ_IDEA
    Copyright (c) 2025, Qiao Xiang, Qingyu Song, Informatics School, Xiamen University.