like watch the program flow for example watch output after each cycle there are some techniques in turbo c I don't know what is called please help me
class star{
public static void main(String[] args) {
int i, j;
for(i=0; i<5; i++)
{
for(j=0; j<=i; j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Mark
There are Java debuggers that let you step through the code. I use the one in IntelliJ to set a breakpoint and proceed one line at a time, which works well. There's a free equivalent in Eclipse, but I don't have much experience.
It's also easier to follow the code flow visually if you indent it correctly.