Home » questions » Does anyone know of a Java compiler that allows you to compile line by line?

Does anyone know of a Java compiler that allows you to compile line by line?

2006-08-07 17:21:42, Category: Programming & Design
Does anyone know of a Java compiler that allows you to compile line by line? I am a Java newbie and I was hoping someone might know of compiler that functions line by line so I could get a better understanding of the results of each line. It would be great if someone knew of a compiler that also showed the changing results of values on the side too. Thanks

Answers

  1. zoha -

    On 2006-08-07 18:55:05


    u can print the values out by System.out.println(); for instance print the values in functions or in each line and specify the line number so u can see how compiler compiles the program.
  2. bytecode

    On 2006-08-11 08:54:22


    use the command line tool "javap.exe" to see what is going on in your code. this file is in your jdk/bin folder. usage is $> javap -c yourclassfile this is not a line by line compiler but you will see what does Java do with your code.
  3. bigradi0head

    On 2006-08-07 17:40:29


    u can do that using a normal compiler by putting a break point at every line and u can put the variables in the watch window to check their value every break point this is in Visual studio IDE" integrated Development environment" they have a visual Java# compiler
  4. FL

    On 2006-08-10 22:05:57


    Use Eclipse IDE. That's free...and easy to use...