/*this class interacts with the arduino class and will process the number of spots info*/ public int refresh(int lotSpots) { Arduino a = new Arduino(); int taken = a.getFullSpots(); //process data here and return return lotSpots - taken; }