Here you can find the source of EndsWith(String x, String z)
public final static boolean EndsWith(String x, String z)
//package com.java2s; //License from project: Open Source License public class Main { public final static boolean EndsWith(String x, String z) { return x.endsWith(z); }//from w w w . j ava 2 s . c om }