Java Basics Track for A290/A590 Spring 2008
Reference: Cay Horstmann's Core Java volume I (Fundamentals)
For additional references available on-line for free from Books24x7 please see the Intro track


Thu Apr 10 10:27:52 EDT 2008 Problem Two:

Write a program that

Here's how my program works:

-bash-3.1$ javac Four.java
-bash-3.1$ java Four 3 2 4 1 6 7 4
1 2 3 4 4 6 7 
-bash-3.1$ java Four 8 5 4 3 2 1
1 2 3 4 5 8 
-bash-3.1$ java Four 4 2 3 1 6 6 6
1 2 3 4 6 6 6 
-bash-3.1$ java Four 9 1 9 2 9 3 
1 2 3 9 9 9 
-bash-3.1$ java Four 9 3 9 2 9 1
1 2 3 9 9 9 
-bash-3.1$ 


Last updated by Adrian German for A290/A590 on Sun Apr 06 14:39:38 EST 2008