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));
Full-Stack software architect/engineer (currently working in the Big Data space), drummer, motorcyclist, 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));