lab4 - Lab 4: Introduction to Java Programming In this lab,...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 4: Introduction to Java Programming In this lab, we introduce the Dr. Java software development environment for Java programs. First we’ll download the needed applications. Then we’ll run a very simple program to demonstrate the process of entering and running a Java program. Finally, you’ll write, test, and (maybe) debug (if indeed you have any bugs!) your own Java program. First you need to get Dr. Java on your Sandbox machine. Go to the labs folder on Coursesite and pull down the file “drjava-stable-20100913-r5387.exe”. Right-click on the filename and select “Pin to Taskbar” or “Pin to Start Menu” to be able to start it easily. When you are working on your own machine, you may download Dr. Java from http://drjava.org (more on that later) or from Coursesite. On your Sandbox machine, click the Dr. Java icon on your start menu or taskbar to start Dr. Java. You should see something like this: 1. We’ll now ask you to enter a simple Java program. Don’t be too concerned with exactly what each item means. Our goal is to show you the process of entering code, compiling it, and running it.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Type the following into the editor screen: public class FirstProgram { public static void main(String[] args) { System.out.println("Hello World"); } } 2. Click on the Compile Button a. Because you have not saved your file, Dr. Java will ask you where to save it. Note that your file must have the same name as the name of the class,
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

lab4 - Lab 4: Introduction to Java Programming In this lab,...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online