User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 455,992 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,796 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 906 | Replies: 3
Reply
Join Date: Nov 2007
Posts: 2
Reputation: dabronx1671 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dabronx1671 dabronx1671 is offline Offline
Newbie Poster

Blackjack Game

  #1  
Dec 5th, 2007
I'm trying to write a program for the Blackjack game but I keep getting an error message saying "; expected" but I don't understand why a semicolon would be needed. The line of code that it occurred was: "boolean playBlackjack()"
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2007
Location: USA
Posts: 3,076
Reputation: Ezzaral is a splendid one to behold Ezzaral is a splendid one to behold Ezzaral is a splendid one to behold Ezzaral is a splendid one to behold Ezzaral is a splendid one to behold Ezzaral is a splendid one to behold Ezzaral is a splendid one to behold 
Rep Power: 15
Solved Threads: 306
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Posting Sensei

Re: Blackjack Game

  #2  
Dec 5th, 2007
And that is a method you are trying to declare or is it a variable you are declaring? Either way it looks to be an invalid statement. Is that the entire line of code?
Reply With Quote  
Join Date: Nov 2007
Posts: 2
Reputation: dabronx1671 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dabronx1671 dabronx1671 is offline Offline
Newbie Poster

Re: Blackjack Game

  #3  
Dec 5th, 2007
That's a method I'm trying to declare, what makes it invalid?
Reply With Quote  
Join Date: May 2007
Location: USA
Posts: 3,076
Reputation: Ezzaral is a splendid one to behold Ezzaral is a splendid one to behold Ezzaral is a splendid one to behold Ezzaral is a splendid one to behold Ezzaral is a splendid one to behold Ezzaral is a splendid one to behold Ezzaral is a splendid one to behold 
Rep Power: 15
Solved Threads: 306
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Posting Sensei

Re: Blackjack Game

  #4  
Dec 5th, 2007
Well, is there any body to the method? Does it have a valid return statement? Somewhere you have an incomplete statement or block and the compiler cannot parse it as valid.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 9:36 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC