Yes it definitely works (i feel like I’m cheating here…). Thanks so much
Now, I’m wondering…what in the WORLD did I miss? I’ve been at this for 12 hours and it took you less than an hour
Problem solved, but I just want to know why after missing meals and sitting in front of a screen I still couldn’t get it myself. Reading documentations just became a drag after stressing, so it was pointless to do so 
Thanks though, but I hate getting the answer without learning my mistake.
Now I am trying to add the draw line and SO FAR this is what I have…
import processing.serial.Serial;
static final int VALS = 2;
int[] vals = new int[VALS];
//
int px = 400, py = 300;
void setup() {
size(800, 600);
noLoop();
stroke(-1);
clear();
final String[] ports = Serial.list();
printArray(ports);
new Serial(this, "COM12", 115200).bufferUntil(ENTER);
}
void draw() {
println(vals);
line(px, py, vals[0], vals[1]);
px = vals[0];
py = vals[1];
}
void serialEvent(final Serial s) {
vals = int(splitTokens(s.readString()));
redraw = true;
}
EDIT: I noticed that println(vals) works just fine but why not println(vals[0])
I think this has been causing my confusion and I’m glad I found it