protected static boolean isValidClassname(String classname){
  return (classname.indexOf("$") == -1);
}

protected static boolean isValidClassname ( String classname ) { return ( classname . indexOf ( "$" ) == - 1 ) ; }
checks whether the classname is a valid one , i . e . , from a public class
