Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 dont understand why this doesnt work.
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
xtreemboarder




PostPosted: Mon Jan 23, 2006 6:30 pm   Post subject: dont understand why this doesnt work.

anyone? it keeps saying unexpected symbols ignored...


Blackjack.java
 Description:

Download
 Filename:  Blackjack.java
 Filesize:  4.63 KB
 Downloaded:  119 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Martin




PostPosted: Mon Jan 23, 2006 7:43 pm   Post subject: (No subject)

Your main function has to be inside the class.

EDIT: Also, a bug I noticed when I glanced through your code: when the user has an ace and you ask them what value they want it to be, they can enter anything and their score will be adjusted accordingly. Meaning that as soon as you get an ace, you can just enter however many points you need to get to 21 and win every time.
xtreemboarder




PostPosted: Mon Jan 23, 2006 9:40 pm   Post subject: (No subject)

Martin wrote:
Your main function has to be inside the class.

EDIT: Also, a bug I noticed when I glanced through your code: when the user has an ace and you ask them what value they want it to be, they can enter anything and their score will be adjusted accordingly. Meaning that as soon as you get an ace, you can just enter however many points you need to get to 21 and win every time.


wow thanks. i didnt even notice that bug
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: