Update README.md

How to give the input and getting output in runtime using java