char scanner syntax in java