Hello,
Keep in mind that some of the Processing “helper” functions\methods are there to simplify things.
I used one of the n*() functions here to clean up the output:
3D Mesh of Sine Waves from Coding Challenge
You can also use Java methods:
Since you are a beginner progress at your own pace.
:)