start to do exercise of thinking in java