Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Objects Delivering the MVP Applying a Discount Code

Stuck I'm trying to figure is there a isLetter method for the String class

trying to figure out how to find a method like isLetter for the String class and how to get the $ symbol isolated from the rest of the characters

1 Answer

Steven Parker
Steven Parker
231,271 Points

There's no string version of "isLetter", but if you create a loop to individually isolate the characters of the string, you can test each one using the Character method "isLetter", and you can also compare it with "$".