In this chapter, I've shown you some of the many ways in which you can manipulate string data in your program. In some cases, we used string functions to manipulate the data. In other cases, we used the methods of the String class to manipulate the data. I also showed you that in some cases, the String method and functions provide the same functionality. In those instances where you can use either approach, which is better? Perhaps the correct answer is, "Use either one." However, my choice is to use the String class methods whenever possible. It's an OOP world out there, and you might as well get used to it. |