java 输入输出项目

package hellohe;
import java.util.Scanner;
/**
 * 
 * @author Administrator
 *1.导入java.util.scanner;
 *2.创建scanner对象
 */
public class hellohe {
	public static void main(String[] args){
		Scanner input=new Scanner(System.in);
		System.out.print("请输入考试成绩信息:");
		int score = input.nextInt();
		int count = 0;
		System.out.println("加分前成绩为:"+score);
		while(score<60){
			score++;
			count++;
		}
		System.out.println("加分后成绩:"+score);
		System.out.println("共加了"+count+"次!");
	}
}

  

myeclipse,断点调试,debug 

1、双击

2、debug

3、f6

原文地址:https://www.cnblogs.com/hyh123/p/5455585.html