This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, Welcome to javaranch. Your display name does not follow the guidelines followed in here as specified in this link. Please change it to a realistic name.
Regarding your question; What exactly you wish to do? You want to show the user the prompt but do not want him to enter anything. If you want the input from some other source then why do you prompt the user?