
Already know some of this? A 2-minute test skips the lessons you know.
Take the placement testA free 24-lesson course built from GeeksforGeeks's 4h 08m of YouTube video. 3 days at 90 minutes a day, with study notes and a quiz in every lesson. A 2-minute placement test skips what you already know.
Taught by GeeksforGeeks on YouTube. Videos play in YouTube's own player, so the creator keeps every view.
Learn to declare strings, take input using Scanner (next vs nextLine), and print strings in Java.
Access individual characters, get string length, and find first/last occurrence indices of characters or substrings.
Use StringBuilder for O(1) character updates, append, delete, reverse, and capacity management without creating new objects.
Extract continuous portions of a string using substring(beginIndex) and substring(beginIndex, endIndex) with end-exclusive indexing.
Solve anagram checks by sorting character arrays (O(n log n)) or using a fixed-size frequency array (O(n) time, O(1) space).
Reverse individual words in a sentence using a sliding window (two-pointer) approach while handling multiple spaces correctly.