Results 1 to 4 of 4
  1. #1
    lenny is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default Comments in java code

    You know on code for web pages and script, you often see something like this
    Java Code:
    */My comment about the script/*
    Well.. Is it possible to do this with Java?
    Thanks

  2. #2
    fegiflu is offline Member
    Join Date
    Jul 2007
    Posts
    11
    Rep Power
    0

    Default

    yes
    // works

  3. #3
    shanePreater is offline Member
    Join Date
    Jul 2007
    Location
    England, Bath
    Posts
    47
    Rep Power
    0

    Default

    Or the multi line comments of
    /* comments */

  4. #4
    Seemster is offline Member
    Join Date
    Jul 2007
    Posts
    55
    Rep Power
    0

    Default

    you can use // for single line comments as such
    // this is a comment
    or for multilines, use /* */ as such:
    /*
    My program is awesome!!!!
    */

Similar Threads

  1. java code
    By sobhalr in forum New To Java
    Replies: 0
    Last Post: 12-28-2007, 10:25 AM
  2. Comments
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-19-2007, 08:43 AM
  3. Replies: 2
    Last Post: 12-10-2007, 05:17 AM
  4. Eclipse - comments
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-07-2007, 02:56 PM
  5. Need a java code
    By vissu007 in forum New To Java
    Replies: 1
    Last Post: 07-11-2007, 10:06 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
  •