Here you can find the source of normalizeToAlpha(String input)
public static String normalizeToAlpha(String input)
//package com.java2s; //License from project: Apache License import java.util.Iterator; import java.util.List; public class Main { public static String normalizeToAlpha(String input) { StringBuffer buf = new StringBuffer(); for (int i = 0; i < input.length(); i++) { char charAt = input.charAt(i); if (Character.isLetterOrDigit(charAt)) buf.append(charAt);/* w ww .j a v a 2 s. c o m*/ } return buf.toString(); } public static String toString(List<String> list, String delimiter) { String argumentString = ""; Iterator<String> iterator2 = list.iterator(); for (int i = 0; iterator2.hasNext(); i++) { String argument = iterator2.next(); if (i > 0) argumentString += delimiter; argumentString += argument; } return argumentString; } }