Class Method and Private Method

But my man, using java im able to do what I described above using processing no!