public static boolean isSimpleNameFullyQualfied(String simpleClassName,String fullyQualifiedClassname){
  if ((fullyQualifiedClassname.endsWith("." + simpleClassName)) || (fullyQualifiedClassname.equals(simpleClassName))) {
    return true;
  }
  return false;
}

public static boolean isSimpleNameFullyQualfied ( String simpleClassName , String fullyQualifiedClassname ) { if ( ( fullyQualifiedClassname . endsWith ( "." + simpleClassName ) ) || ( fullyQualifiedClassname . equals ( simpleClassName ) ) ) { return true ; } return false ; }
returns true if the simple class name is the class name of the fully qualified classname . < p > this method does not verify validity of class and package names , it uses simple string compare inspecting the trailing part of the fully qualified class name .
