// find the unique number in a givern array wherer all the elements are being twive with one value being unique using function import java.util.Scanner; class UniqueArrayElement{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.println("Enter the number of elements in the array"); int n = sc.nextInt(); int[] arr = new int[n]; System.out.println("Enter the elements of the array"); for(int i=0;imax){ max = arr[i]; } } int[] map = new int[max+1]; for(int i=0;i