for(initialization; test; update) { actions }is exactly equivalent to
initialization; while ( test ) { actions update }
static int void main(String[] args) { Quadcopter spy = new Quadcopter(); spy.setLocation(10.5, 1.2); spy.setDestination(-18.2, -45); spy.setSpeed(3.5); System.out.println("Travel distance: " + spy.distanceToTravel()); System.out.println("Travel time at " + spy.getSpeed() + ": " + spy.timeToDestination()); }