I have to make a program that will list all of the even numbers from 2-50. I have the basic part of it down but there is something wrong with it. The program is
import java.io.*;
class FilePrac3
{
public static void main (String args[])
java.io.IOException
{
int count;
for (int count = 2 ; count <= 50 ; count += 2)
{
System.out.println (count);
System.out.println (count * count);
}
}
}
The error message says "Throws expected after this token".
Any help would be greatly appreciated, thank you!