// shuffling an array
Card[] cards = new Card[ 52 ];
...

// convert array to ArrayList
ArrayList<Card> cardList = new ArrayList<>( Arrays.asList( cards ) );

// shuffle
Collections.shuffle( cardList );

// convert back to an array
cards = cardList.toArray( new Card[ cardList.size() ] );