void add_spring(int start, int end) { Spring s = new Spring(); s.start = start; s.end = end; springs.add(s); }