Hello everyone! quick question.
I am working on a Java project and I am trying to set up coordinates as an int for an if statement. I'm not the best with the jargon, but basically what I'm trying to do is set up an if statement where if a randomly drawn pixel is within (50, 250) it will be drawn red and if it is within (75, 250) it will be drawn blue. My question is when I declare the ints can I use a code line such as this?
private final int NUM_PIXELS = 10000, THICKNESS = 1, LOCATION_A = (50, 250), LOCATION_B = (75, 250);
I currently get an error ')' expected.
Hopefully this question isn't too stupid for everyone, thanks!
Oh, Hello everyone btw!