Class Work (CS 312) 13 Jun 2012

Inside the Java directory create a subdirectory called ch2. This subdirectory will contain all the programs from Chapter 2 from your book.

Write the following programs from Chapter 2 in your book and get them to work.

These programs have to be completed before class on Friday, 15 Jun 2012. Do not turn them in. They will not be graded.

Use a text editor to create the programs. Compile and run them on the command line. Indent by two spaces and vertically align all your curly braces.

Do this:
if ( x > 5 )
{
  a = b + c;
}

Not this:
if ( x > 5 ) {
  a = b + c;
}