Array Riddle: What did the computer loving gardener do the the lawns?
import
java.io.*;
public
class puzzle1
{
public static void main (String args [])
{
final int max = 6;
char A [] = {'h', 'y', 'e', 'y', 'd', 'o'};
A [1] = A [5];
A [5] = 'm';
A [0] = A [4];
A [3] = A [2];
A [2] = A [0];
A [4] = A [5];
A [5] = '!';
A [0] = A [4];
for (int i = 0 ; i < max ; i++)
{
System.out.println (A [i]);
}
}
}