Smart Data Solutions interview question

Part 1: Convert customer data file (.dat) to csv file in Java. The .dat file contained customer data in fixed-width format with each line having customer ID, name (first, last, and middle initial), address, company, state, and zip code.

Interview Answer

Anonymous

1 Mar 2021

I was not able to complete this part in the 1 hour time limit. It took me half the time to comprehend the purposes for each of the solution's classes. It would have been simple for me to write the entire solution in the main method, but they provided several classes/interfaces I had to extend/implement which was confusing.

1