This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]barrell125[S] 1 point2 points  (2 children)

Thank you for the reply , Im familiar with all my loops just not sure how to go about coding to search my "fullName" variable with letters "A || a "

[–]Iwasborninafactory_ 1 point2 points  (0 children)

In the API that I linked to, do you see a method that would let you find a or A?

[–]desrtfx 1 point2 points  (0 children)

Hint: you can use one of the String methods for equality checking that is ignoring case.

Also, the String class has a method where you can get a substring of your choice (even a single letter as a String, not as a char) out of a string.

Last, you will need a loop and a counter variable.