code: public static String getFileNameWithoutExtension(File file) {
  
  		String name = file.getName();
  
  		int extensionIndex = name.lastIndexOf(".");
  		if (extensionIndex > -1) {
  			name = name.substring(0, extensionIndex);
  		}
  
  		return name;
  	}
docs: Get the file name with the extension removed
  
  @param file
  file
  @return file name