Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
flyingseel
flyingseel's Profile
1
Posts
2
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
unexpected token: import
[7 Replies]
17-May-2013 08:59 PM
Forum:
Programming Questions
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?
«Prev
Next »
Moderate user : flyingseel
Forum