u****s 发帖数: 2186 | 1 int i;
URL url = new URL("http://www.cnn.com");
InputStream input = url.openConnection().getInputStream();
//add a line here
while( (i=in.read())!=-1 )
{
System.out.print((char)i);
}
Add which of the following line to the above 'add a line here
will print out the context of the website
A. BufferedInputStream in = new BufferedInputStream(input);
B. BufferedReader in = new BufferedReader(new InputStreamReader(input
));
C. |
q*********u 发帖数: 280 | 2 b
你这些题是不是brainbench上面的阿
int i;
URL url = new URL("http://www.cnn.com");
InputStream input = url.openConnection().getInputStream();
//add a line here
while( (i=in.read())!=-1 )
{
System.out.print((char)i);
}
Add which of the following line to the above 'add a line here
will print out the context of the website
A. BufferedInputStream in = new BufferedInputStream(input);
B. BufferedReader in = new BufferedReader(new InputStr
【在 u****s 的大作中提到】 : int i; : URL url = new URL("http://www.cnn.com"); : InputStream input = url.openConnection().getInputStream(); : //add a line here : while( (i=in.read())!=-1 ) : { : System.out.print((char)i); : } : Add which of the following line to the above 'add a line here : will print out the context of the website
|
u****s 发帖数: 2186 | 3 more than one answer
try it |
g**e 发帖数: 6127 | 4 同问
【在 q*********u 的大作中提到】 : b : 你这些题是不是brainbench上面的阿 : : int i; : URL url = new URL("http://www.cnn.com"); : InputStream input = url.openConnection().getInputStream(); : //add a line here : while( (i=in.read())!=-1 ) : { : System.out.print((char)i);
|
u****s 发帖数: 2186 | 5 不是,但应该类似
【在 g**e 的大作中提到】 : 同问
|
s***8 发帖数: 1136 | |
u****s 发帖数: 2186 | |