r/JavaProgramming • u/New-Election4972 • Mar 17 '26
r/JavaProgramming • u/IndependentOutcome93 • Mar 17 '26
Java Developer connects to SqLite DB for the first Time? See the impression:
r/JavaProgramming • u/Interesting_Path7540 • Mar 17 '26
Spring AI 2 Audio and Image
r/JavaProgramming • u/OTAEMMERICH • Mar 17 '26
Error help
UPDATE: was missing a bracket at the end
iām using processing, my code is giving the "Syntax Error - Unexpected extra code near extraneous input '<EOF>' expecting..." error
im not too sure why (probably missing code)
i would also like to make it a three sprite animation using an array.
here is the code:
PImage img1;
PImage img2;
float odd = 0;
void setup() {
size (400,400);
img1 = loadImage("./frame1.png");
img2 = loadImage("./frame2.png");
}
void draw() {
odd = odd + 0.1;
background(255);
PImage img;
if (floor(odd) % 2 == 0) {
img=img1;
}
else {
img = img2;
}
image(img, 0, 0);