/* A spoke used in a bicycle wheel. Since the wheel does all the calculations, this class has public instance variables. */ public class Spoke { /* Create a spoke with the given wide and narrow diameters, and length of narrow section. */ public Spoke (double d, double bd, double bl) { spokeDiameter = d; buttDiameter = bd; buttLength = bl; } public double spokeDiameter; public double buttDiameter; public double buttLength; }