Skip to content

SamirSOLAI/Java-Substring-Visualizer-Swing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String Explorer (Java Swing)

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.

🎯 Goal

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

🧩 Features

  • Editable input string (String s)
  • Controls to increase/decrease:
    • i
    • j
  • Live display of:
    • s.charAt(i)
    • s.substring(i)
    • s.substring(i, j)

About

Small Java Swing app that visualizes charAt(i) and substring(i) / substring(i, j) with interactive controls for i and j.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages