title: How to input password to sudo using java Runtime?
body: <p>I need to execute the given commands as root and sudo user using Java. However, I am not sure about the method that I can use to pass the password. Is there  a way by which I can pass the password to the terminal ? </p>