lx11.java
来自「JAVA学习源代码,大家可以好好参考,请多提宝贵意见」· Java 代码 · 共 37 行
JAVA
37 行
import java.io.*;
public class Lx11
{
/*static void throwOne() throws IllegalAccessException
{
System.out.println("Inside thowOne.");
throw new IllegalAccessException("demo");
}*/
public static void main(String args[])throws IOException
{
String str;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
//(new InputStreamReader(System.in));
System.out.println("Enter lines of text,'stop' to quit");
//int read() throws IOException;
do
{
str=br.readLine();
System.out.print(str);
}
while(!str.equals("stop"));
}
}
/*System.out.println("I do not throw exception!");
try
{
throwOne();
}
catch(IllegalAccessException e)
{
System.out.println("Caught"+e);
}
}
}*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?