Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started