i have to take integers in an array and output them in random order : this is the output i need 
 Input Array: 1 2 3 4 5 6 7
 Random Output: 7 2 3 6 1 5 4
this is what get
Input size of the Array
5
Input Value 1
1
Input Value 2
2
Input Value 3
3
Input Value 4
4
Input Value 5
5
Random Output: 2
Random Output: 0
Random Output: 0
Random Output: 0
Random Output: 0

 
       


            import java.util.Random;
        import java.util.Scanner;
        public class problem_2 {
        public static void main(String args[]){
        Random r = new Random();
        Scanner m = new Scanner(System.in);		
        System.out.println("Input size of the Array");	
        int size = m.nextInt();
        int a[] = new int[size];
        int b[] = new int[size];

        for(int i = 0;i<a.length;i++) {			
            System.out.println("Input Value " +(i+1));
            a[i] = m.nextInt();
        }
        int cell = 0;
        int x = r.nextInt(size);
        int value = a[x];
        while(cell<size) {
            
            
            for(int i =0; i<= size;i++) {
                if (b[i]==value) {
                    cell++;
                }
                if(cell==0) {
                    b[cell] = value;
                    cell++;
                }
                System.out.println("Random Output: "+b[i]);
            }
        } 

    }
}