codes in thinking in java