title: Javascript wrapper for simple java program
body: <p>I want to arrange to have a computer simulation with super simple IO (just print statements), than can run in a browser. I can program in java, but know very little about Javascript. I have a feeling (correct me if I'm wrong) that it may be possible to arrange some HTML/Javascript such that it could neatly wrap a separated chunk of pure java - either in a file on its own, or perhaps inside a larger file with a region marked with...</p>
  
  <p>** START JAVA HERE **</p>
  
  <p>** END JAVA HERE **</p>
  
  <p>...such that someone who only knew java could write a java program there and view it in the browser - so long as the IO was restricted to simple print statements.</p>
  
  <p>Is this possible? Has it been done already?</p>
  
  <p><strong>EDIT:</strong> A bit more background... I have written a computer simulation of a real world phenomenon which I want academics to be able to play with and modify. Academics are more likely to know java than javascript - so I want to hide away all the javascript stuff and let the user just see java.</p>