This will result in an "Invalid access" error, triggering the debugger, not a simple null output. I think you meant to use item.get("height") but then didn't cover the .get method in chapter 3. Considering how useful .get is (especially the 2-arg version), it might make sense to include that in chapter 3 if you make a 2nd edition.
This will result in an "Invalid access" error, triggering the debugger, not a simple null output. I think you meant to use
item.get("height")
but then didn't cover the.get
method in chapter 3. Considering how useful.get
is (especially the 2-arg version), it might make sense to include that in chapter 3 if you make a 2nd edition.