Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package programmazione_generica;
- public class ArrayFind {
- public static <T> T find(T[] t, T a){
- for(T e : t)
- if(e.equals(a))
- return e;
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement