Java String Chop chopId(String name)

Here you can find the source of chopId(String name)

Description

chop Id

License

Open Source License

Declaration

public static final String chopId(String name) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final String chopId(String name) {
        int id1in = name.indexOf('-');
        String id1s = name.substring(id1in + 1);
        return id1s;
    }//w w w . j a  va 2  s.  c  o m
}

Related

  1. chopBraces(String s)
  2. chopCommentFromArgs(String[] args)
  3. chopExt(String orig)
  4. chopFirstComponent(String s)
  5. chopFractionalPart(float original, int no_of_digits )
  6. chopIfMatch(StringBuilder sb, char ch)
  7. chopLast(String value, int chars)
  8. chopLenghtyString(String title, int maxLen)
  9. chopLongLinesAtSpaces(int maxLineLenght, String text)