Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. void foo(Object o){
  2. if(o instanceof Integer){
  3. System.out.println("Integer");
  4. }
  5.  
  6. if(o instanceof Date){
  7. System.out.println("Date");
  8. }
  9.  
  10. //And so forth
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement