Joanna,
Welcome to JavaRanch!
A Java debugger comes with any
IDE. Common free IDEs are Eclipse and NetBeans.
If this is a really simple program, it is going to be faster to add some System.out.println(myVariable); statements than download and setup an IDE.