Android Class Name Get createValidClassName(String str)

Here you can find the source of createValidClassName(String str)

Description

create Valid Class Name

Declaration

public static String createValidClassName(String str) 

Method Source Code

//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*/
}

Related

  1. extractPartialClassName(String className, int parts)
  2. getClassName()