Must-do problems: Strings
150 min · Beginner
Need help? Ask a tutor on WhatsApp (opens in a new tab)These are the String problems every Java learner should be able to solve. Work them in order from easy to hard, check your program against every test, and open a hint only when you are stuck.
What you will learn
- Walk through a String with charAt() and build results with StringBuilder
- Use char arithmetic and int[26] counting for letters
- Combine split(), substring(), indexOf() and equals() to solve real tasks
- Handle edge cases: extra spaces, empty results, ties and very long inputs
Sign in to continue this lesson
Create an account to read every lesson, practise with the exercises and keep track of your progress.