This project is a small Java Swing desktop application that helps visualize how Java string indexing works using:
s.charAt(i)s.substring(i)s.substring(i, j)
You can change the string s, and increment/decrement the indices i and j using arrow buttons to see the results instantly.
The goal of this mini-app is to practice:
- Java Swing event handling (
ActionListener) - Keeping a UI synchronized with internal state (
updateUI()) - Understanding common String methods and index boundaries
- Editable input string (
String s) - Controls to increase/decrease:
ij
- Live display of:
s.charAt(i)s.substring(i)s.substring(i, j)