saumyaraj zala wrote:The output shoul be xycg but how could it be cxgy and xygc??
Well my advice to you is to format that class with
proper indenting. Then you may be able to see how.
Right now it's a mess - even if it came that way from an
SCJP book (they do it that way on purpose) - and it's preventing you from seeing how the class is structured.
Winston