title: How to import/call methods/class from Java into Javascript code
body: <p>Probably this is is a very basic question. Apologies for that. I have been trying at various ends to find an answer for this.</p>
  
  <p>My question is like this:</p>
  
  <p>I have a java code relating to reading an inbox. I need to call this code/method/class in the new javascript file, which I will be developing.</p>
  
  <p>Basically, I need to use the methods in the java file onto the new javascript file</p>
  
  <p>Can anyone please help?</p>