Results 1 to 4 of 4

Thread: Error in coding

  1. #1
    bamagirl31 is offline Member
    Join Date
    May 2011
    Posts
    47
    Rep Power
    0

    Default Error in coding

    System.out.println(“Mortgage payment amount is " + totPaymentYrs);

    With Netbeans, I get an error such as illegal character 8220, ; expected and unclosed string literal.

  2. #2
    Toll's Avatar
    Toll is offline Senior Member
    Join Date
    May 2011
    Location
    Sweden
    Posts
    382
    Rep Power
    3

    Default

    It seems the first quote character isn't a "normal" quote character, at least in that quote.

  3. #3
    bamagirl31 is offline Member
    Join Date
    May 2011
    Posts
    47
    Rep Power
    0

    Default

    Thanks so much. That helped.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default

    Take the trouble to type your code, don't blindly copy and paste stuff from web pages.

    db

Similar Threads

  1. Need help please with coding
    By avaiblas in forum NetBeans
    Replies: 2
    Last Post: 12-24-2010, 01:19 AM
  2. Replies: 4
    Last Post: 10-25-2010, 03:49 PM
  3. Better coding
    By tomiu in forum New To Java
    Replies: 1
    Last Post: 04-09-2009, 07:19 PM
  4. coding help
    By accies76 in forum New To Java
    Replies: 5
    Last Post: 11-12-2008, 08:15 PM
  5. Error in my coding
    By one198 in forum New To Java
    Replies: 2
    Last Post: 10-13-2007, 05:07 AM

Posting Permissions

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