我正在开发应用程序..
class Wheel {
private int size;
Wheel(int s) {
size = s;
}
void spin() {
System.out.print(size + " inch wheel spinning, ");
}
}
public class Bicycle {
public static void main(String[] args) {
Wheel[] wa = { new Wheel(15), new Wheel(17) };
for (Wheel w : wa)
w.spin();
}
}
但是请告知我们如何Wheel[] wa = { new Wheel(15), new Wheel(17) };
用更简单的术语来表达。