hello world in java

Java
public static void main(String[] args){
  System.out.println("Hello World");
}Sprite.prototype.myMove = function (){
	var elem = document.getElementById("avion1");   
	var pos = 0;
	var id = setInterval(frame, 10);
	function frame() {
	  if (pos == 550) {
		clearInterval(id);
	  } else {
		pos++; 
		elem.style.top = pos + 'px'; 
	  }
	}
  }
//using requestAnimationFrame
var start;
var stopId;
var progress;
var toggle = false;

var element = document.getElementById('avion1');

function step(timestamp) {
  if (!start || progress > 400) start = timestamp;
  progress = (timestamp - start) / 10 + 50;
  element.style.top = progress + 'px';
  stopId = window.requestAnimationFrame(step);
}

function toggleAnimation() {
  if (!toggle) {
    toggle = true;
    window.requestAnimationFrame(step);
  } else {
    toggle = false;
    cancelAnimationFrame(stopId);
  }
}printing hello world
Source

Also in Java: