In RHE, pag370, in q2 there is a line: .....Color.red.green.cyan wich is ok. Why? I didn't understand the explanation from the book. Can you help me? Thank you. cc
Color.red, Color.green, Color.cyan etc are all static variables declared in the class Color. Hence Color.red.green.cyan is same as (Color.red).green.cyan is same as Color.green.cyan ---> Color.red is of type Color is same as (Color.green).cyan ---> Color.green is of type Color is same as Color.cyan Hope that helps, Ajith
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Are you here to take over the surface world? Because this tiny ad will stop you!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop