If you do not want to install software on your computer (or you can't because you have a Chromebook or tablet) but you want to create, compile and run Java applications, Online GDB is a good option.
In this video I make a simple program from Chapter 5 of our textbook.