How to use Java in codemirror?

Can someone send a demo on how to use java in codemirror? I don’t know how to use java in codemirror and I tried searching answers to this question but still I’m confused

Please don’t post two topics with the same question (java in codemirror not working).

no one’s answering tho that’s why