getFileExt static method

String getFileExt(
  1. String fileName
)

Implementation

static String getFileExt(String fileName) {
  return fileName.substring(fileName.lastIndexOf(".") + 1, fileName.length);
}