final int SIZE = 8; // The size of the Throttle
final int SPOT = 3; // Where to move the Throttle's lever
Throttle small = new Throttle(SIZE); // Declare instance of a Throttle
small.shift(SPOT);
System.out.print("My small throttle is now at position ");
System.out.println(SPOT + " out of " + SIZE ".");
System.out.println("The flow is now: " + small.getFlow());
Output is:
My small throttle is now at position 3 out of 8.
The flow is now: 0.375