Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private <T> T factory(Class<T> clazz ){
- try {
- return clazz.newInstance();
- } catch (InstantiationException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- }
- }
Add Comment
Please, Sign In to add comment