/* A hub used in a bicycle wheel. Since the wheel does all the calculations, this class has public instance variables. */ public class Hub { /* Create a hub with the given axle length, flange insets, flange radii, and hole diameter. */ public Hub (double a, double di, double ni, double dr, double nr, double h) { axleLength = a; driveFlangeInset = di; nonDriveFlangeInset = ni; driveFlangeRadius = dr; nonDriveFlangeRadius = nr; holeDiameter = h; } public double axleLength; public double driveFlangeInset; public double nonDriveFlangeInset; public double driveFlangeRadius; public double nonDriveFlangeRadius; public double holeDiameter; }