📄 testif.java
字号:
import java.util.*;
public class TestIf{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
System.out.print("Input score:");
int score = sc.nextInt();
if(score < 60)
score = 60;
System.out.println("score:" + score);
if(score > 90){
System.out.print("Input your name:");
String name = sc.next();
System.out.println("name:" + name);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -