Java String Chop chopExt(String orig)

Here you can find the source of chopExt(String orig)

Description

chop Ext

License

Apache License

Declaration

private static String chopExt(String orig) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static String chopExt(String orig) {
        int lastDot = orig.lastIndexOf('.');
        return lastDot < 0 ? orig : orig.substring(0, lastDot);
    }/*from   w w w  . j  ava  2  s.  com*/
}

Related

  1. chopAccelerator(final String title)
  2. ChopAllLf(String this_string, String chomp_off)
  3. ChopAllRt(String this_string, String chomp_off)
  4. chopBraces(String s)
  5. chopCommentFromArgs(String[] args)
  6. chopFirstComponent(String s)
  7. chopFractionalPart(float original, int no_of_digits )
  8. chopId(String name)
  9. chopIfMatch(StringBuilder sb, char ch)