in Attached Files there is Question i do not understand the last step
how to coount it ?
package javaapplication178;
public class JavaApplication178 {
public static void main(String[] args) {
int x[][]={{14,7,5,0},
{9,20,25,12},
{25,25,40,30}};
for(int i=0;i<x.length;i++)
{
for(int y=0;y<x[i].length;y++)
{
System.out.print(x[i][y] + " ");
}
System.out.println(" ");
}
PrintStock( x);
System.out.println(" ");
}
public static void PrintStock( int x[][]){
int count=1;
for(int i=0;i<x.length;i++)
{
for(int y=0;y<x[i].length;y++)
{
if(x[i][y]<10){
count++;
System.out.print(count++ + " ");
}
}
}
}
}