Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago