Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-24-2007, 04:18 PM
Member
 
Join Date: Jul 2007
Posts: 40
Rep Power: 0
lenny is on a distinguished road
Default Comments in java code
You know on code for web pages and script, you often see something like this
Code:
*/My comment about the script/*
Well.. Is it possible to do this with Java?
Thanks
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-24-2007, 07:01 PM
Member
 
Join Date: Jul 2007
Posts: 11
Rep Power: 0
fegiflu is on a distinguished road
Default
yes
// works
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-25-2007, 10:44 AM
Member
 
Join Date: Jul 2007
Location: England, Bath
Posts: 47
Rep Power: 0
shanePreater is on a distinguished road
Default
Or the multi line comments of
/* comments */
__________________
Shane Preater - The One Vision Group
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-25-2007, 08:59 PM
Member
 
Join Date: Jul 2007
Posts: 55
Rep Power: 0
Seemster is on a distinguished road
Default
you can use // for single line comments as such
// this is a comment
or for multilines, use /* */ as such:
/*
My program is awesome!!!!
*/
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
java code sobhalr New To Java 0 12-28-2007 11:25 AM
Comments Java Tip Java Tips 0 12-19-2007 09:43 AM
Comments Template Assignment - very basic, need help! passage New To Java 2 12-10-2007 06:17 AM
Eclipse - comments Java Tip Java Tips 0 11-07-2007 03:56 PM
Need a java code vissu007 New To Java 1 07-11-2007 11:06 PM


All times are GMT +2. The time now is 06:07 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org