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
public static void main (String args)
for (int count = 2 ; count <= 50 ; count += 2)
System.out.println (count * count);
The error message says "Throws expected after this token".
Any help would be greatly appreciated, thank you!