Here you can find the source of endsWithStarsPattern(String text, int from)
final static private boolean endsWithStarsPattern(String text, int from)
//package com.java2s; //License from project: Apache License public class Main { final static private boolean endsWithStarsPattern(String text, int from) { if (from < 0) from = 0;/* ww w . ja v a 2s. c o m*/ for (; from < text.length(); from++) { char c = text.charAt(from); if (c != '*' && c != '%') return false; } return true; } }