📄 dowhileloop.java
字号:
import java.io.IOException;
public class DoWhileLoop
{
public static void main(String argv[])
{
char input = ' ';
try
{
do
{
System.out.println("请输入小写的n");
input=(char)System.in.read();
System.out.println((int)input);
} while (input!='n');
}
catch (IOException e)
{
}
System.out.println("程序结束");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -