/** * Contains the position of a 4-DOF robotic arm. **/ class Position { final int fBase; final int fShoulder; final int fElbow; final int fWrist; Position(int base, int shoulder, int elbow, int wrist) { fBase = base; fShoulder = shoulder; fElbow = elbow; fWrist = wrist; } Position() { this(159, 159, 159, 159); } public String toString() { return "Position(base="+fBase+",shoulder="+fShoulder+ ",elbow="+fElbow+",wrist="+fWrist+")"; } }