08-10-2012, 04:29 AM
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]
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.");
System.out.println("I prefer Java.");