I found this free learn and try your code website where you can type your code in any language and run it. ex. I coded python here for free if you don't want to install python or java in your system.
Exercism is primarily built as a CLI-first tool. Download and submit exercises right from your terminal. Use the Exercism in-browser editor Don't spend hours installing a language locally just to try it out. We support all 70 of our programming languages in our in-browser editor. Get automated analysis on your code.