Where to write java programs on ubuntu?

You can use emacs, gedit etc to write your java code and compile in terminal, if you wish to use IDE for java you can use eclipse or netbeans.

The list of editors is really very long. See What IDEs are available for Ubuntu? to know more.


Most people use Netbeans or Eclipse to write Java code.