一、Debug
1.Debug概述:
是供程序员使用的程序调试工具,它可以用于查看程序的执行流程,也可以用于追踪程序执行过程来调试程序。
1.2Debug操作流程
Debug调试,又被称为断点调试,断点其实是一个标记,告诉我们从哪里开始查看
F7运行
案例
public class PassSeven {
//for循环实现1-100之间的数
public static void main(String[] args) {
for (int x=1; x<=100;x++){
if (x%10==7 || x%10/10==7 || x%7==0){
System.out.println(x);
}
}
}
}
public class Rabbit {
public static void main(String[] args) {
//动态初始化数组
int[] arr = new int[20];
arr[0] = 1;
arr[1] = 1;
// arr[2] = arr[0] + arr[1];