Created
May 11, 2011 03:56
-
-
Save jaydonnell/965897 to your computer and use it in GitHub Desktop.
java field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean exists (String className) { | |
try { | |
Class.forName (className); | |
return true; | |
} | |
catch (ClassNotFoundException exception) { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment