what is the problem in this code class ManageTables { public static void main(String[] args) { for(int i=0;i<11;i++) { int k =1; int y=9; int z =(y*k); System.out.println("9"+" * "+k+" = "+z); k++; } } }//problem is k is not incrementing..
an easy way to figure this out would be to pepper your code with println() statements. Each time you do ANYTHING to k, put in a print statement...
put in something like 'debug' so you know what to take out, and number each line so you can tell which is which in your output.
you will eventually learn cleaner ways to do this (with tools like log4j for example), but this works for simple programs - and often for complex ones too, in many cases.
Never ascribe to malice that which can be adequately explained by stupidity.