Java String.toUpperCase()
Hallo!
ich habe folgendes Problem: wenn ich API richtig verstanden habe, sollte
Zitat:
input = String.toUpperCase(input);
|
mir den String input als groß geschriebenen String zurückliefern. Leider wirft mir das Programm eine Exception:
Zitat:
The method toUpperCase(Locale) in the type String is not applicable for the arguments(String)
|
Wieso nimmt er die Methode mit Locale, wenn es ohne doch eigentlich auch gehen sollte und wie kann ich das Ganze richtigstellen, daß es auch funktioniert? (mit dem Locale seh ich mich nicht ganz hinaus)
thx & lg, Athropos
____________________________________
Einstein, Pascal and Newton are playing hide and seek. Einstein is \"it\" so he faces the wall, closes his eyes and counts to π.
Pascal runs off like an idiot but Newton pulls out a piece of chalk and draws a 1m x 1m square on the ground and then stands in it\'s centre.
Einstein\'s done counting and turns around and sees Newton, so he grabs him and screams \"I found Newton!\"
Then Newton smirks and says, \"I\'m not Newton, I\'m Pascal\".
|