JavaAssignment3

JavaAssignment3 - Coachs 3rd Java Programming Assignment...

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

View Full Document Right Arrow Icon
Coach’s 3 rd Java Programming Assignment Background This set of lab exercises will focus on using your Java programming environment, rather than on  the Java language itself.  Obviously, you'll need to master these "system" preliminaries before  you can begin developing your programming expertise in subsequent chapters. Given that the  primary purpose of this lab is to show you how to use your system to create working programs,  you'll begin this lab on your own, by entering, editing, and running a Java program. Lab Objectives In this lab, you will: Become familiar with the Borland JBuilder programming environment. Learn how to enter, edit, run, and save Java programs. Gain experience fixing some simple syntax errors. Investigate a variety of sample Java applets. Exercises 1.   Java programs come in two basic flavors---"applications" that are written to be run as  standalone programs, and "applets," which are written to be run from within Worldwide  Web (WWW) pages. Since almost all of the programs that we will be working with in  these labs are of the applet variety, we refer to them collectively as "lablets." In order to  run a lablet, you must perform four steps. Produce the source code.  The source code for the lablet must be typed in and saved  as a  text  file. This can be accomplished using any word processing program, or by  using any of the programs that provide integrated development environments (IDEs) for  Java such as Borland’s JBuilder. The name of this source file must consist of the  name of the "public class" defined in the file, followed by the extension "Java". So,  for our lablet below in which we define the class Colors, we would save our file that  contains the program text in a file named "Colors.java". Compile the source code.  Once the source file has been created, the next step is to  translate it into the Java  byte code  that can be interpreted and run on your computer.  The compiler will translate your "Java" file ("Colors.java," in this lab) and produce a  second file called a  class  file (named, in our example, "Colors.class"). Make a Web page for the applet. 
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/12/2009 for the course CS 120 taught by Professor Robertdependahl during the Fall '09 term at Santa Barbara City.

Page1 / 6

JavaAssignment3 - Coachs 3rd Java Programming Assignment...

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

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