View Single Post
Join Date: Nov 2007
Posts: 6
Reputation: VirusTalker is an unknown quantity at this point 
Solved Threads: 1
VirusTalker VirusTalker is offline Offline
Newbie Poster

Re: Interger Arrays---Need Help!

 
0
  #9
Nov 15th, 2007
public static void ReadArray(int []array)
{
Scanner scan = new Scanner(System.in);
for (int index = 0; index < array.length; index ++)
{
System.out.println("Please enter element" + (index+1) + ": ");
array[index] = scan.nextInt();
}
}//end class

Try something like this.....cheers
Reply With Quote