Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface Lookup<T>{
- public T find(String name);
- }
- public class IntegerLookup implements Lookup<Integer>{
- private Integer[] values;
- private String[] names;
- public IntegerLookup(String[] names, Integer[] values) {......}
- //now I want to write the implemented method - find
- public Object find(String name){...}
- public Integer find(String name){...}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement