Skip to content
Coding Fanatic
  • Android Development
  • News and Reviews
  • Road2Pro
  • Tutorials
  • Services
  • About

Final Turn! 25/100 Days of Code

  • April 15, 2019
  • by Richard Clarke

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

Related

Undercover Bugger, 24/100 Days of Code
Why I’m Switching to JavaScript
Richard Clarke
Richard is currently a developer using Java and Android Studio to build custom applications for Android. Richard tutored in mathematics at Montgomery College, and worked in Information Technology before entering the Software Development industry as a Quality Engineer.
100daysofcode Java Programming

Related articles

Your New Favorite Stopwatch App!…
Two for Two BABY! 7…
…But the App is for…
Play Store Blues – 5…
Top 4 Tips for Android…
No Dice – 3 of…

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Join the mailing list!

This field is required.

Check your inbox or spam folder to confirm your subscription.

Follow me on social media!

  • GitHub
  • YouTube
  • X
  • Instagram
  • LinkedIn
My Tweets

Join the mailing list!

This field is required.

Check your inbox or spam folder to confirm your subscription.

Follow me on social media!

  • X
  • GitHub
  • LinkedIn
  • YouTube

Archives

Theme by Colorlib Powered by WordPress