BillGilbert

new variant

Feb 1st, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. import java.util.Arrays;
  2. import java.util.HashSet;
  3. import java.util.Set;
  4.  
  5. public class Delete2 {
  6.     public static void main(String args[]) {
  7.         Integer[] inputArray = {1, 1, 3, 4, 4, 4, 4, 4, 5, 6, 7, 7};
  8.         Set<Integer> list = new HashSet<>(Arrays.asList(inputArray));
  9.         list.forEach(System.out::println);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment