0
Whye error???
public class Program { public static void main(String[] args) { String x = "moutaz "; String y = "java"; String result = x.toUpperCase(); System.out.println(result); System.out.println(y.toUpperCase); } }
1 Réponse
+ 3
toUpperCase() is a method. Hence you need the () in the last println