How does this java work?

Status
Not open for further replies.

Pommie

Well-Known Member
Most Helpful Member
I have an Android App that is in Java. I follow most of it but am confused at a particular piece of code. Namely,
Code:
protected void onDraw(Canvas c) {
    super.onDraw(c);
    if (DrawingClassArrayList.size() > 0) {
        c.drawPath(
                DrawingClassArrayList.get(DrawingClassArrayList.size() - 1).getPath(),
                DrawingClassArrayList.get(DrawingClassArrayList.size() - 1).getPaint());
    }
}
How does DrawingClassArrayList.size ever change? Is it some kind of counter and if so, how?

Mike.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…