package shan.five;import org.apache.commons.lang.StringUtils;public class pipei ...{ /** *//** * @param args */ public static void main(String[] args) ...{ // TODO 自動生成されたメソッド・スタブ pipei p = new pipei(); boolean a = p.pk("hnnnnnn", "hanling"); if (a) System.out.println("wrong"); else System.out.println("Ok"); } public boolean pk(String a, String b) ...{ if (a == null || a.length() < 1) return false; int dance = StringUtils.getLevenshteinDistance(a, b); System.out.println(dance); if (dance * 1.0 / a.length() < 1 - 0.9) return true; return false; }}