java pause program until key pressed

Java
System.in.read()
Source

Also in Java: