In another Bruce Eckel exercise, the code I\'ve written takes a method and changes value in another class. Here is my code:
class Big { float b; } public
Yes, but you have to specify that they are floats, otherwise they are treated as doubles:
z.b = 2.2f
The 'f' at the end of the number makes it a float instead of a double.
Java won't automatically narrow a double to a float.