java基础案列之一:`在这里插入代码片import java.util.Scanner;
public class Jangli{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
System.out.println(“请输入一个分数:”);
int xiao = sc.nextInt();
if(xiao>100 || xiao<0){
System.out.println(“你输入的分数有误:”);
}else if(xiao>=95 && xiao<=100){
System.out.println(“山地自行车一辆”);
}else if(xiao>=90 && xiao<=94){
System.out.println(“游乐场玩一次”);
}else if(xiao>=80 && xiao<=89){
System.out.println(“变形金刚玩具一个”);
}else{
System.out.println(“胖揍一顿”);
}
}