how to convert char to uppercase java

Java
char first = Character.toUpperCase(userIdea.charAt(0));
betterIdea = first + userIdea.substring(1);
Source

Also in Java: