Wednesday, August 29, 2007

ICA-CP: 8/30/2007

Good morning!

Today, we're going to spend some time analyzing the parts that made-up our first HelloWorld java program. As a reference, there is a very similar program called "Simple Program" which prints "this is a simple program" instead of "Hello World". As a reference for our class, the line by line analysis of the "Simple Program" may be found at this link: http://us.geocities.com/gnashes30/java/tutorial/sim_prog.htm

So, our first program printed some information. For our second program, we need to get some information from the user. In order to do this, we will need to use a Java library called TerminalIO. Before we may use the TerminalIO library, each of us needs to make sure it is installed in BlueJ. To check if TerminalIO is installed on your computer, start BlueJ. From the main BlueJ screen, click on Tools --> Preferences --> Libraries. In the Libraries screen, you should see this line in the white area of the screen if the TerminalIO library is loaded:

c:\BlueJ\lib\userlib\TerminalIO.jar(loaded)

If TerminalIO isn't loaded on your computer, we will need copy it from the R drive and install it in BlueJ in order to do today's programming exercise.

0 Comments:

Post a Comment

<< Home