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

📄 testif.java

📁 由浅入深的介绍JAVAse的基本编程思想
💻 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 + -