编写程序代码如下
package ljp;
public class Hellolsj {
public static void main (String[] agrs)
{
int i = 5;
int j = 6;
int sum = add (i,j);
System.out.println(sum);
sum &#61; 0;for (i &#61; 0;i <100; i&#43;&#43;)sum &#43;&#61; i;System.out.println(sum);
}
public static int add(int augend,int addend)
{int sum &#61; augend &#43; addend;return sum;
}
}
设置断点并通过单步运行让程序运行到第6行&#xff0c;点击运行结果窗格上方的Step Over和Step Into。