How to get the value of Java?

Been trying this for weeks but i can’t get the value of the code I write in editor. It only shows the exact thing that I input in the code editor. Also, I didn’t get the syntax highlighting, what can I do to make this work? badly need it for my project