Java String Chomp chomp(String options)

Here you can find the source of chomp(String options)

Description

chomp

License

Apache License

Declaration

public static String chomp(String options) 

Method Source Code

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

public class Main {
    public static String chomp(String options) {
        if (options == null || options.isEmpty()) {
            return options;
        }/*from www  . ja v  a2s  .co m*/
        return options.substring(0, options.length() - 1);
    }
}

Related

  1. chomp(CharSequence prefix, CharSequence full)
  2. chomp(final String s, final String suffix)
  3. chomp(String in)
  4. chomp(String inStr)
  5. chomp(String path)
  6. chomp(String s)
  7. chomp(String s)
  8. chomp(String sd, String c)