标签:
笔试:
1、下面哪些正则表达式写法正确,直接闷逼,下去复习下正则
例:验证电子邮箱地址:\w+([-.]\w+)*@\w+([-.]\w+)*
public static void main(String[] args) { int[] arr = new int[] { 1, 11, 22, 3, 3, 4, 5, 6, 7, 8 }; Set<Integer> set = new TreeSet<Integer>(); for (int i : arr) { set.add(i); } int[] des = new int[set.size()]; int j = 0; for (Integer i : set) { des[j++] = i; } System.out.println(Arrays.toString(des)); }
标签:
原文地址:http://www.cnblogs.com/wangweiNB/p/5318950.html