Create implementation of busy waiting using java

compile:open command prompt type javac ATM.java
>java ATM
output.