Here you can find the source of chomp(CharSequence prefix, CharSequence full)
public static CharSequence chomp(CharSequence prefix, CharSequence full)
//package com.java2s; //License from project: Apache License public class Main { public static CharSequence chomp(CharSequence prefix, CharSequence full) { return full.subSequence(prefix.length(), full.length()); }/* w ww. j av a2 s . c o m*/ }