You don't need to put the bracket in line 10 anymore. How about you put what you drew in middle near in draw. Don't complicate it too much for now. Don't make a void middlebear function for now if you can help it. I would do that if I'm going to draw more than one thing.

I don't quite understand what you mean by what I drew in middle. Do you mean the //middle bear should be inside the draw? And I'm going to be drawing a few more bears so I need the function void middlebear.

Wow, your very helpful!
thanks for the help, unfortunately the code still seems to be not working.
Nonetheless, I learnt tons of helpful tips from you! I'm really glad you were online when you posted.:)

I think the problem is due to the parameters of the ellipse(when drawing middle bear) to be incorrect. I'll post if I solved the solution.
p.s has this stuff every happened to you?

Thanks. And has it happens to me? Of course! Remember this, the smallest mistakes can mess you up. I'll continue working on your code to see if I canvas fix it! Hold it, what is 7/10 the height? Maybe try putting in the actual numerical value and see what you get.

In Java when both operands are whole values in a division, the fraction part is removed from the result!!! :-&
At least, 1 of the operands gotta be a fraction values for a fractional division to happen: 7.0/10*height

@TechWiz777, Java coerces a whole value to become fractional when iterating w/ another fractional value! :>
Therefore, in this expression 7.0/10*height, the (int) 10 is coerced to become (float) 10.0 due to the other (float) 7.0 operand for the / operation! :-B
Since its result is a float, the height's value is also coerced to become a float type for the * multiplication!

Got nothing to do w/ Processing, which is merely a framework library atop Java!
Any programming language got its own rules for arithmetic expressions!
Common strategy among them all is coerce any whole value to fractional when the latter is present.
Since integer operations are generally faster than fractional 1s, values should continue at their integer state until fractional is actually needed! ~O)

In the first lines, the variables are declared (and get a default value of zero), in setup they are initialized to their value. Notice we don't repeat their type, otherwise it will make different local variables.