• 0

compare the first letter of a string to a char


Question

im writing a program that has movie titles in a string array, the users inputs a char n all movie titles starting with that char are display. im thinking of using the atChar() method to compare the entered char with the titles first char, is this the best solution for the job or is the an easier/ simpler way/method

3 answers to this question

Recommended Posts

  • 0

im writing a program that has movie titles in a string array, the users inputs a char n all movie titles starting with that char are display. im thinking of using the atChar() method to compare the entered char with the titles first char, is this the best solution for the job or is the an easier/ simpler way/method

I would recommend using a database and SQL to query for the titles.

This topic is now closed to further replies.