Hi guys
im a newbie to
Java and in workshops what were doing is turning the below code to OO making it simipler. I was wondeirng if sumone if someone can turn the below code to OO soo i can get an idea of how code is turned into OO.
player: while (!false) {
try {
System.out.println(" human players?");
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String s = in.readLine();
h = Integer.parseInt(s);
if (nop - h < 0)
throw new UnsupportedFlavorException(null);
break player;
} catch (Exception e) {
System.out.println("number of humans ");
}
}
Thanks
alot Steve