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.
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):
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.
In this course, each Java file should always consist of the following three components:
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.