Advertisement
Guest User

Untitled

a guest
Jul 10th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public interface Lookup<T>{
  2. public T find(String name);
  3. }
  4.  
  5. public class IntegerLookup implements Lookup<Integer>{
  6. private Integer[] values;
  7. private String[] names;
  8.  
  9. public IntegerLookup(String[] names, Integer[] values) {......}
  10. //now I want to write the implemented method - find
  11.  
  12. public Object find(String name){...}
  13.  
  14. public Integer find(String name){...}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement