(week of Jan 12-16)
The purpose of the first lab is to familiarize yourself with the Java development environments.
You will learn how to write a small Java program using two different development environments. One is to use a text editor and the command line Java compiler and interpreter. The other environment is to use an IDE (integrated development environment) called Eclipse.
You are suggested to follow the steps below for your lab 1.
Follow this page from Java Sun Tutorial.
Note that you do not need to download The Java SE Development Kit 6 (JDK 6) as was said on that page.
This tutorial shows how to use a simple text editor to write a Java program. This is the very basic Java development environment that everyone should know.
Try all the code here using method 1.
Use the IDE "Eclipse" to write Java programs.
Follow this link to read a tutorial on Eclipse.
Try again all the code here using this method.
1. Debug the program here.
2. Write a program that asks user for three integer inputs and find the maximal and minimum integer among the three input.