View Full Version : Quick Question About Java Comments
ttttt
10-25-2005, 01:41 PM
You know on code for web pages and script, you often see something like this
*/My comment about the script/*
Well.....Is it possible to do this with Java?
Thanks:thumbsup:
Roelf
10-25-2005, 01:50 PM
// one line comment
/*
block comment
*/
TheShaner
10-25-2005, 03:24 PM
Various programming languages use different ways of commenting, so just be careful what language you're in.
Java (and JavaScript follows the same method, which is why you've seen it in scripts) and C++:
// Only this line is a comment
/*
Whatever's between the two is a comment
*/
HTML:
<!-- This is a comment -->
CSS:
/* This is a comment */
VBScript:
' This is a comment
ColdFusion:
<!--- This is a comment --->
Perl:
# This is a comment
C:
// This is a comment
... and the list goes on.
-Shane
ttttt
10-25-2005, 04:06 PM
Thanks that told me everything I need to know.:cool:
Thanks Again
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.