I'm new to processing but haven't really got the time to go through all the tutorials, so sorry if I've made a really stupid mistake somewhere ;)
I'm trying to create a program that will 'map' how far an object is from a sonar sensor. Most of the work is done on the arduino, which takes the data and turns it into an x,y value. These are printed to the serial like this (only there are 180 of them):
x value ; y value
0.00 ; 0.00 <--- That's the smallest form
508.40 ; 215.80 <--- That's the largest form
I'm trying to split them up into individual x y values and then convert them to integers so I can draw some lines, but I'm getting the "nullpointerexception" error. Here is my code so far: