📄 j3_34.java
字号:
import java.io.*;
import java.net.*;
class URLReader{
public static void main(String args[]){
try{
URL tirc = new URL("http://www.tsinghua.edu.cn/");
BufferedReader in = new BufferedReader(new
InputStreamReader(tirc.openStream()));
String s;
while((s = in.readLine())!=null)
System.out.println(s);
in.close();
}catch(MalformedURLException e) {
System.out.println(e);
}catch(IOException e){
System.out.println(e);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -