?? sorry, you talk about using Processing IDE 3.5.3 P5.js MODE
or the differences p5.js to JAVA mode, anyhow when click on
[View Code][Processing ] you get the JAVA code too.
other side yes there are different version for p5.js
best is you work online editor
https://editor.p5js.org/
open a NEW project and paste your sketch.js code into it.
now can adjust name and SAVE project.
that project will keep that version stored!
and also can DOWNLOAD ( and that comes with that used version of p5.js
if you install the P5.js MODE for the Processing IDE you get a version installed.
later you might need to update that manually.