File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes method help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

method help

steve low

Joined: Sep 27, 2006
Posts: 27
Hi guys

i kinda got my method working but not as i wanted it to basically this method is replacing the old one at the bottom. and what i want it to do
select number of human players.. you have from 1 to 5 but throw an exception if more then 5 and loop allowing the user to select human players again. thats what ive done below. the bottom code is the old code you can have a look and see what im trying to do to it...

old code
[ October 01, 2006: Message edited by: steve low ]
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Please don't start a new topic in the middle of the same discussion. Anyone answering here would benefit by seeing the context in the original discussion here. This really doesn't belong in JiG(I), so I'm going to close this one and leave the one in Beginner's open.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: method help
jQuery in Action, 3rd edition