Adding confirm flag to apt-get install java