Quote:
where I could learn java for free
At home, reading a free book (though dated,
Bruce Eckel's book[
^] provides a good introduction) or a tutorial. Making practice.
Quote:
Also what IDE should I use?
Use the
IDE
you like the most.
Here[
^] you may find a comparison of the most popular ones. For simple test programs you don't even need an
IDE
: use your favourite text editor for writing the program and compile it from the shell, launching the
javac
compiler, finally run it using the
java
executable.