本人初学java,经人推荐使用JCreator Pro(3.5),但不会单步调试,以前用vc++6时可以跟踪观看
变量的值,有人说要在protect中,虽然可以加断点,但没有可以观看变量的地方,请老虾指点,令有一个
小练习,请教:
编程实现:
  $
 $$$
$$$$$$
 $$$
  $  再次谢过。

解决方案 »

  1.   

    public class star{
    public static void main(String args[])
    {
    for(int i=1;i<=5;i++)
    {
    for(int k=0;k<Math.abs(i-3);k++)
    System.out.print(" ");
    if(i>3)
    for(int k=0;k<2*(5-i+1)-1;k++)
    System.out.print("$");
    else
    for(int k=0;k<2*i-1;k++)
    System.out.print("$");
    System.out.println();
    }
    }
    }
      

  2.   

    我是指具体怎谋调试!ctr+F5我也知道!
    Math.abs(i-3)是什么意思?
    能不能不调用函数!
    先谢楼上的二位!