Here you can find the source of wildCard(String _name)
public static String wildCard(String _name)
//package com.java2s; /******************************************************************************* * Copyright Duke Comprehensive Cancer Center and SemanticBits * //from ww w . j a v a 2 s.c o m * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/c3pr/LICENSE.txt for details. ******************************************************************************/ public class Main { public static String wildCard(String _name) { String trimmedName = _name.toString().trim(); if (trimmedName == null || trimmedName.equals("") || trimmedName.length() == 0) { return ""; } else if (trimmedName.length() > 0 && !trimmedName.endsWith("%")) { return trimmedName + "%"; } else { return trimmedName; } } }