If you insist on pissing away resources on the String class, the indexOf() method takes an optional second argument that says where to begin scanning. If you begin scanning one place after the last dot found, and increment a counter while the indexOf() value is positive, you can count the dots.
I append to the string and add more data to the end of it, I search, delete, and replace old data and replace the small piece of data that is associated with that MAC. I can do all of that if I use an Array?
brolly759:
I append to the string and add more data to the end of it, I search, delete, and replace old data and replace the small piece of data that is associated with that MAC. I can do all of that if I use an Array?