Note that cin and cout are C++ streams. In Java the standard streams are:
System.in for standard input
System.out for standard output
and
System.err for error output.
I found something useful at the following website:
Example of using System.in The above example shows you how to read from the standard input and write to the standard output, but leaves you some work so that you can learn by writing your own code.
One more hint is that to create an array, you can use the following syntax:
int[][] intArray = new int[5][6];
The line of code above will create a 5 by 6 array of int. The array sizes don't have to be known at compile-time, so you can read the array sizes from the console and use x & y for the array sizes.
Kaydell
[ June 03, 2007: Message edited by: Kaydell Leavitt ]