Java String Chomp chomp(String value)

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

Description

chomp

License

Apache License

Declaration

public static String chomp(String value) 

Method Source Code

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

public class Main {
    public static String chomp(String value) {
        if (value.length() > 0) {
            return value.substring(0, value.length() - 1);
        }/*  w ww .java  2s. c om*/
        return value;
    }
}

Related

  1. chomp(String str)
  2. chomp(String str)
  3. chomp(String str)
  4. chomp(String str, String sep)
  5. chomp(String str, String separator)
  6. chomp(StringBuilder sb)
  7. chompAllAndTrim(String str)
  8. chompClosureOpen(String expr)
  9. chompHeader(String str, String prex)