⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lx10.java

📁 JAVA学习源代码,大家可以好好参考,请多提宝贵意见
💻 JAVA
字号:
import java.io.*;
public class Lx10
 {
  /*static void throwOne() throws IllegalAccessException
  {
   System.out.println("Inside thowOne.");
   throw new IllegalAccessException("demo");
   }*/
   
   public static void main(String args[])throws IOException
   {
   	//int d=0;
   	char c=0x42;
   	InputStream br;
   	//BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
   	br=System.in;
   	System.out.println("Enter characters,'o' to quit");
   	//int read() throws IOException;
    do 
    {
    	c=(char)br.read();
    	System.out.print(c);
    }
    while(c!='o');//end of program
  }
} 	
  
   /*System.out.println("I do not throw exception!");
   try
    {
     throwOne();
    }
    catch(IllegalAccessException e)
    {
      System.out.println("Caught"+e);
    }
    }
    }*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -