upperFirstLetter static method

String upperFirstLetter(
  1. String s
)

Implementation

static String upperFirstLetter(String s) {
  return s[0].toUpperCase() + s.substring(1);
}