Cutting up Strings, 14/100 Days of Code
I think I figured out this coding challenge for sorting addresses.
In this codekata, I’m writing a function that organizes addresses in a String. A list of addresses are stored inside of a String and separated by commas. The function accepts the string of addresses and another string containing a State abbreviation and zipcode. Next, the function outputs a String with the addresses reordered and reformatted based on the input State and zipcode.
It’s possible I’ll need to use the .contains() method of the String class in Java. More updates coming soon!
-CF