Scanner class in java example