删除数组中重复的元素

public static void main(String[] args) {
		int nums[] = {1,1,1,2,3,4};
		int nums2[] = {1,1,1};
		int numw[] = {1,1,2};
		System.out.println(removeDuplicates(numw));
	}
	
	public static int removeDuplicates(int[] nums) {  
		int i = 0;
		int j = 0;
		while(i

你可能感兴趣的:(算法)