Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need some help plz!
#2
Hello, bigbubblewrap.

The error is in the following code snippet:
[code2=java]public static void PrintArray(){
System.out.println("-------------------------");
{
System.out.println(i);
}
}[/code2]
You need to add an enhanced FOR loop there. So it should look like this:
[code2=java]public static void PrintArray(){
System.out.println("-------------------------");

for (int i : array){
System.out.println(i);
}
}[/code2]
Also known as Rocketalypse.
System.out.println("I prefer Java.");


Messages In This Thread
Need some help plz! - by bigbubblewrap - 08-09-2012, 02:50 PM
Re: Need some help plz! - by Vinwarez - 08-10-2012, 04:29 AM
Re: Need some help plz! - by bigbubblewrap - 08-10-2012, 01:22 PM
Re: Need some help plz! - by Vinwarez - 08-10-2012, 02:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)