unexpected token: import
in
Programming Questions
•
5 months ago
class Stuff
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
public class Stuff{
private static final String SITE = "http://marvel.com/comics/calendar";
public static void main(String[] args) throws Exception {
String line;
BufferedReader br = new BufferedReader(new InputStreamReader(new URL(SITE).openStream()));
while (null != (line = br.readLine())) {
System.out.println(line);
}
}
}
why do I keep getting this error?
1