Cannot call circle() in seperate java file

I got my file, and I can call circle(100, 100, 10); just fine in there. However, when I go to my, I call circle(100, 100, 10);, I get errors.

First, this is my import: import processing.core.*; This does not work, I must extend my class to PApplet.
I extend it, but why do I need to extend it, when in already extends it and runs the main app?

I extended it anyway, and I was allowed to use circle(100, 100, 10);, but when I compiled and ran it, I got an error:


So I am really confused why I can’t call circle() in another class. How am I supposed to be doing it?

1 Like