• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Comment in DBMain

 
Tony Deng
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone
My English is poor,I hope that everybody can understand me.
sun provides a interface DBMain , and in this interface , it uses sign "//" to comment , for example
// this is a one-line comment
but in my other classes , I use sign "/* ... */ " , for example
/* This is a comment
* that continues
* across lines
*/
In order to look like the same coding style , I modify DBMain with sign "/*...*/" to comment . Are there some wrong with me?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No nothing wrong with you.
The // is used to comment a single line. You are just using the other comment structure for multiple comment lines.
the //* is there to create Javadocs, so you do not want to change those.
Hope that helps.
Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now to the administrative duties.
"D yh"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
here.
Thanks! and welcome to the JavaRanch!
Mark
 
Tony Deng
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark , thank you for answer my question . You are the first friend I meet here . Maybe I will often trouble you later , would you like to help me ?
I think the answer is OK ,
I have changed my displayed name as Tony Deng , and it's right ? I'm not sure . Thanks for your advice .
Best regards.
Tony
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tony. There are many here too that will definitely help out, and they are all very very good.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic