StringUtilsTrial.java Source code

Java tutorial

Introduction

Here is the source code for StringUtilsTrial.java

Source

/*
3) Chomp END >>>A test String 
    
 */

import org.apache.commons.lang.StringUtils;

public class StringUtilsTrial {
    public static void main(String[] args) {

        // Remove the specified string at the end of String
        System.out.println("3) Chomp END >>>" + StringUtils.chomp("A test String END", "END"));

    }
}