📄 myclass1.java
字号:
/*源程序清单6-9*/
public class MyClass1 {
public static void main(String[] args)
{
try
{
System.out.println("Please input a char,then enter,'q' to quit:");
while(true)
{
int i=System.in.read();
if(i==113)
break;
if(i!=13&&i!=10)
System.out.println("The char's ASCII is "+i);
}
}
catch(Exception e)
{
System.out.println(e.toString());
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -