char is a primitive and String is an object, so you are trying to call a method on a primitive that does not exist. Solution would be to use the Character.toUpperCase method or Character.toString()...