java comment imprimer une chaîne en majuscule

String str = "hello"; 
String strUpperCase = str.toUpperCase();
Confused Curlew