String.substring(): Returns a new String from beginIndex (inclusive) to endIndex (exclusive).
How to apply it: Trace substring carefully: substring(2, 5) returns characters at indices 2, 3, and 4.
Course: AP Computer Science A · Unit: Using Objects
Practice questions about String.substring() on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.