Hi,
Could you please explain what you mean with "since there is nothing like a 'booleanValue'". I'm afraid I don't get that one
Line 5 is absolutely legal - you call the booleanValue() function on Boolean object (this function returns boolean primitive), and then you assign the return value to another boolean primitive b2.
You might want to look up the Boolean class in
Java API Docs for more info on booleanValue() function.