Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { /** * Extract the firmware version information from the file name. * * @param fileName is the full name including extension. * @return file name without the extension. */ public static String extractVersionName(String fileName) { String[] versionNameArr = fileName.split("\\."); return versionNameArr[0]; } }