private static String split(String s) {
        int i = s.lastIndexOf('.');
        if (i < 0)
            return s;
        else
            return s.substring(i + 1);
    }
private static String split ( String s ) { int i = s . lastIndexOf ( '.' ) ; if ( i < 0 ) return s ; else return s . substring ( i + 1 ) ; }
Removes everything in a String that comes before a '.'
@param s the original string
@return the part that comes after the dot