A seemingly trivial task, but worth jotting down for future reference.
String sourceString = “this is some string”;
String convertedString = String.format(“%s%s”, Character.toUpperCase(sourceString.charAt(0)), sourceString.substring(1));
Principal Software Engineer/Architect, motorcyclist, drummer, and artist
A seemingly trivial task, but worth jotting down for future reference.
String sourceString = “this is some string”;
String convertedString = String.format(“%s%s”, Character.toUpperCase(sourceString.charAt(0)), sourceString.substring(1));