I am very new to java and I am having issues figuring out what is wrong with my code. I am doing methods and one section of my methods keeps showing a else without if error message. Please help!
private static boolean isPerfect( int number )
int temp = 0;
for(int i; i<=number/2; i++);
if(number%i == 0)
if( temp == number)
return true; // JUST TO MAKE IT COMPILE YOU MODIFY AS NEEDEDS