Java String Sub String subStrBeforeDotNotIncludeDot(String str)

Here you can find the source of subStrBeforeDotNotIncludeDot(String str)

Description

sub Str Before Dot Not Include Dot

License

Open Source License

Declaration

public static String subStrBeforeDotNotIncludeDot(String str) 

Method Source Code

//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;
    }
}

Related

  1. substract(double[] a, double[] b)
  2. substract(int[] array1, int[] array2)
  3. substract(Number n1, Number n2)
  4. substraction2(double[] a, double[] b)
  5. substractPrefixPostfix(Object obj, String prefix, String suffix)
  6. subStrByBytes(String str, int len, String tail)
  7. substrByLength(String str, int start, int size, String markCode)
  8. subStrBytes2(String str, int byteLength)
  9. substrCount(String haystack, String needle)