Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Can someone help me with this?

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can someone help me with this?

    public static VoteChecker voteChecker = new VoteChecker("DATABASE ADDRESS", "DATABASE NAME", "DATASE UESRNAME", "DATABASE PASSWORD");"

    Im getting an error that says this

    starting...
    src\com\rs\game\player\Player.java:3232: error: unclosed string literal
    public static VoteChecker voteChecker = new VoteChecker("DATABASE ADDRES
    S", "DATABASE NAME", "DATASE UESRNAME", "DATABASE PASSWORD");"

    ^
    1 error
    Press any key to continue . . .


    If anyone knows what to do( Again im a beginner and this is the first time seeing this error ) Please comment below.
    Also i didnt see a help section anywhere so excuse me if this is in the wrong area. THANK YOU!

  2. #2
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Can someone help me with this?

    src\com\rs\game\player\Player.java:3232: error: unclosed string literal
    public static VoteChecker voteChecker = new VoteChecker("DATABASE ADDRES
    S", "DATABASE NAME", "DATASE UESRNAME", "DATABASE PASSWORD");"
    An "unclosed string literal" is the compiler's way of saying that your quote marks don't match up in pairs.

    ---

    I can't help but observe that an error on line 3232 isn't something that a beginner should be running into. First walk, then run, and only later attempt marathons. At least that's how I'd approach it

    [Edit] this thread really belongs in a technical forum. I'll move it to "What's wrong with my code". More people are apt to see it there.