Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I already have the code i need JUNIT test sample to compare two files in Junit e

ID: 3727534 • Letter: I

Question

I already have the code i need JUNIT test sample to compare two files in Junit eclipse for java . ( compare the outcome with second file ) .USE bufferedreader .

You are planning a road trip and want to create a playlist of your favorite songs. Assume that thesong titles are in an array of strings. Create a shuffle of yoursongs (permutation of your original songs).Use the Fisher–Yates shuffle algorithm that works in O(n) running time. We will use a methodthat creates pseudo-randomnumbers(see end for help) in O(1) running time.The basic idea is to start from the last element, swap it with a randomly selected element from the whole array (including last). In the next step you will consider the array from 0 to n-2 (size reduced by 1), and repeat the process untilyou reachthe first element.Write a programthat usesthe provided Playlist.txt as inputand outputsthe shuffled array in a file called LastNameFirstNamePlaylist.txt.Follow the next pseudocode:To shuffle an array a of n elements (indices 0..n-1):for i from n -1 downto 1j = random integer with 0 <= j <= iexchange a[j] and a[i]

Explanation / Answer

Below java class reads a file "Playlist.txt" and shuffles the lines and outputs the file "LastNameFirstNamePlaylist.txt"

Test case file