Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Lloyd Alvarez   on May 18 In Java Category.

  
Question Answered By: Norman Ray   on May 18

while(!(response=='Y'||response=='N')){
c.out.println("Do you wish to proceed? Y or N)
try{
response =c.input.readString().charAt(0)
}catch(Exception ignore){
response='?';
}
}

Excepitons all for newbies, so what was the question.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Simple solution to input? Or get search suggestion and latest updates.


Tagged: