I don't know what's wrong with this code:
class A{
    private int i,j;
    public void get(int i, int j)
    {
        this.i=i;
        this.j=j;
    }
    public void show()
    {
        System.out.println(i + " " + j);
    }
}
public class App {
    public static void main(String[] args) {
        A[] c = new A[11];
        for(int i=0; i<10; i++)
        {   
            c[i].get(i, i);
        }
        for(int j=0; j<10; j++)
        {
            c[j].show();
        }
    }
}
can anyone please tell me the right way to call the get() method?? thanks in advance...
 
    