Question: This is all done in Java. How do i convert a multi line list into a single line.... (the address is being read from a

This is all done in Java. How do i convert a multi line list into a single line....

(the address is being read from a file so dont worry about how its reading it)

Input:

John and Jane Doe

500 St. Laurent Blvd

Ottawa, ON

K1K 4T6

David Smith

6537 Laurier Street West

Ottawa, ON

Andrew Lukas, Angela Lincoln

3-175 Woodroffe Ave

Nepean, ON

K2J 4Y7

Output:

John,Doe,Jane,Doe,500,StLaurent,Blvd,,Ottawa,ON

David,Smith,,,6537,Laurier,Street,W,Ottawa,ON

Andrew,Lukas,Angela,Lincoin,175,Woodroffe,AVE,,Nepean,ON

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!