Here you can find the source of subStrBeforeDotNotIncludeDot(String str)
public static String subStrBeforeDotNotIncludeDot(String str)
//package com.java2s; //License from project: Open Source License public class Main { public static String subStrBeforeDotNotIncludeDot(String str) { String result = str;// w w w . ja va2s . c o m int iPos = result.indexOf("."); if (iPos != -1) { result = result.substring(0, iPos); } return result; } }