Guest User

Untitled

a guest
Nov 15th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. private <T> T factory(Class<T> clazz ){
  2. try {
  3. return clazz.newInstance();
  4. } catch (InstantiationException e) {
  5. e.printStackTrace();
  6. } catch (IllegalAccessException e) {
  7. e.printStackTrace();
  8. }
  9. }
Add Comment
Please, Sign In to add comment