Here you can find the source of createValidClassName(String str)
public static String createValidClassName(String str)
//package com.java2s; public class Main { public static String createValidClassName(String str) { String valid = str.replace(" ", ""); valid = valid.replace(":", ""); valid = valid.replace("-", ""); valid = valid.replace(",", ""); return valid; }/*from w ww . ja v a2s .c om*/ }