Java Demo
Java Code Output