Results 1 to 5 of 5
  1. #1
    stephanie904 is offline Member
    Join Date
    Feb 2012
    Posts
    13
    Rep Power
    0

    Default poker applicatation error

    Im writing a code for a poker game and Im not understanding the error it gives me...if someone can help ? thanks



    Card.java:103: error: not a statement
    $ boolean result = false;
    ^
    Card.java:103: error: ';' expected
    $ boolean result = false;
    ^
    2 errors
    Last edited by stephanie904; 04-17-2012 at 12:10 AM.

  2. #2
    eRaaaa is offline Senior Member
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    787
    Rep Power
    6

    Default Re: poker applicatation error

    Whats about the dollar sign in line 103??
    $ boolean result = false;
    ->
    boolean result = false;

  3. #3
    stephanie904 is offline Member
    Join Date
    Feb 2012
    Posts
    13
    Rep Power
    0

    Default Re: poker applicatation error

    lol thanks haha i dont know when I pressed that...fat fingers duh!

    is there anyway that I can group public final static int and cases together without writing them each one seperate ????

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: poker applicatation error

    Quote Originally Posted by stephanie904 View Post
    is there anyway that I can group public final static int and cases together without writing them each one seperate ????
    I would use enums in place of your constants as well shown in this example.

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,298
    Rep Power
    20

    Default Re: poker applicatation error

    stephanie904, please don't remove large chunks of content from your posts after there are responses. If you do this again, you may face a ban.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. dice poker
    By saina in forum New To Java
    Replies: 1
    Last Post: 04-04-2012, 10:01 AM
  2. Design logic problem - Poker App
    By santeron in forum New To Java
    Replies: 0
    Last Post: 05-24-2011, 10:31 AM
  3. Texas Hold'em Poker
    By JohnPringle83 in forum Java Gaming
    Replies: 0
    Last Post: 05-05-2011, 05:40 AM
  4. Please help Me out with this poker Problem
    By ckrisasa in forum Networking
    Replies: 8
    Last Post: 12-03-2009, 01:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •