Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

New Articles From Microcontroller Tips

Back
Top