angshumanbasak/JavaCodeVisualizer — reverse-engineered prompt
Reverse engineered prompt
Build me a browser app for learning Java where someone can type Java code on the left, run it, and step through it line by line like Python Tutor. It should work fully in the browser with no server.
I want the editor to feel polished, with syntax highlighting, line numbers, breakpoints, current line highlighting, undo and redo, tab indentation, download as a .java file, and the ability to open local Java files. On the right, show variables as they change, arrays visually, the call stack, program output, and compile or runtime errors with useful line numbers.
Please include buttons for compile and run, step forward and back, autoplay with speed control, reset, fullscreen, theme toggle, and a dropdown of beginner friendly example programs. Support basic Java features like variables, arrays, loops, if statements, methods, recursion, Scanner input, System.out printing, common Math and String methods, ArrayList, HashMap, and Arrays helpers. Use React in a Vite style setup and keep it easy to run locally.
Want more depth? Deep Reverse