hi ,everyone . I am again presenting a simple code in which the line system.out .println has some errors. The code is
class ifelsetest
{
public static void main(string args[])
{
int number []={50,34,87,19};
int even=0,odd=0;
for(int i=0;i<number.length; i++)
{
if((number[i]%2)==0)
{
even+=1;
}
else
{
odd+=1;
}
}
}
System.out.println("Even numbers":+even +odd numbers: +odd);
}
}
The error is identifier expected, illegal start of type etc.... too many errors only in the last line . Plz help me resolve it . Thanks