Final Turn! 25/100 Days of Code
It took a few weeks, but the Salesman Travel coding challenge is finally complete!
I added code for inserting commas to separate the address information. The return String should contain all the address numbers and names separated by commas. However, my program mixed the information together instead (click below).
To remedy this, I added two if statements that confirm the lists are empty. If they aren’t empty, the program should add a comma to the end (click below).
In other words, the program adds a comma to a list prior to adding new information if the list is not empty. This ensures the list doesn’t start or end with a comma. Finally, I added code to display the list of information (click below).
This project was so much fun! I learned a lot about the process of planning and executing a project. For my next trick, I’ll turn this into an Android application.
-CF