Skip to content

Compiling/running a LWJGL program from terminal

I’m trying to compile and run an LWJGL project purely from the console without the use of Maven/Gradle or any IDE (for reasons). I’m running Mac OS X v10.15.4. The program seems to compile fine but upon running it, I get the following: The code is identical to the guide code at https://www.lwjgl.o…

Printing a snake pattern using an array

I’m having trouble with an assignment where we are required to print out this array: My code is somewhat correct but it is not printing 10 and 19 where it should be. My output: My code: Can anyone detect what is causing the error? Any help would be appreciated. Answer This will generate the “snaki…