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 trialZuo Olaide
336 PointsString Equality Question
Add another if statement that checks if the firstExample is equal ignoring case to thirdExample. If it, is print out "first and third are the same ignoring case
Can someone give me a few pointers but not answers please?
2 Answers
Kourosh Raeen
23,733 PointsThe String class has an equals() method that you can use. I can tell you more if you need me to.
Cindy Lea
Courses Plus Student 6,497 PointsI will give you a skeleton format:
if (firstExample is equal to thirdExample) { print a line that says"first is equal to second"); }
Change "firstExample is equal to thirdExample" to java code
Dov Brodkin
2,695 PointsDov Brodkin
2,695 PointsYou have to write an if statement using .equalsIgnoreCase that compares the first and third variable, if it is true, use the console.printf to print out "first and third are the same".