08-10-2012, 01:38 PM
Yeah, great spot Vinwarez!
[code2=java]public static void PrintArray(){
System.out.println("-------------------------");
{
System.out.println(i);
}
}[/code2]
Here, when you use the { and }, you are opening and closing a new body... but that is not legal without a body operator such as for, while, if, switch, etc.
[code2=java]public static void PrintArray(){
System.out.println("-------------------------");
{
System.out.println(i);
}
}[/code2]
Here, when you use the { and }, you are opening and closing a new body... but that is not legal without a body operator such as for, while, if, switch, etc.