I am a beginner in Java. So excuse me for any silly questions, I have the following code 
void push (int item) {
        if (tos == 9)
            System.out.println("stack is full");
        else 
            stck [++tos] = item;
    }
Here, I cant understand how the assignment of item is done to tos.
 
    