package Diplay;
public class Generic {
public static void MessageToLoop(String S) {
char reponse = 'n';
Scanner sc = new Scanner(System.in);
while (reponse == 'n')
{
System.out.println(S);
System.out.println(" ? (Y/N)");
reponse = sc.nextLine().charAt(0);
}
}
}
Post Top Ad
2015年3月17日星期二
HOME
Unlabelled
Generic Java Class for Looping yes or no in order to validate user choices
Generic Java Class for Looping yes or no in order to validate user choices
About Emirates Schools مدرستي الاماراتية
订阅:
博文评论 (Atom)
Post Top Ad
About the editor
Hello! My name is Mohamed, I work here on my blog and I share with you all new on the internet to benefit everyone and enrich the Arabic content, I am always happy to receive your comments and inquiries through the contact form :)
没有评论:
发表评论