Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning Android Application Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Android Application Development
This is the forum to discuss the Wrox book Beginning Android Application Development by Wei-Meng Lee; ISBN: 978-1-1180-1711-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android Application Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 10th, 2011, 12:27 AM
Registered User
Points: 28, Level: 1
Points: 28, Level: 1 Points: 28, Level: 1 Points: 28, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to add comment in a java file and xml

anyone can tell me how i can add a comment in the java file and xml file??
Reply With Quote
  #2 (permalink)  
Old October 7th, 2011, 08:12 AM
Registered User
Points: 38, Level: 1
Points: 38, Level: 1 Points: 38, Level: 1 Points: 38, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2011
Location: UK, Kidderminster
Posts: 12
Thanks: 0
Thanked 2 Times in 1 Post
Default

Java single line comment:

Code:
var++; // Single line comment
Will comment out anything after the '//'.

Java multi line comment:

Code:
/**********************
  This is a multi line comment.
 */
Will comment out the code between '/*' and '*/'.

XML only has multi line comments, though they can be used for single lines.

Code:
<!-- comment here -->
Will comment out the code between '<!--' and '-->'

atb
Reply With Quote
Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add to an XML file using VB? QuadFather XML 4 April 6th, 2010 02:32 PM
Perform test then add comment fixit XSLT 1 October 23rd, 2009 12:39 PM
Display xml comment using xslt mllena XSLT 1 January 16th, 2009 06:32 AM
Create XML file - According to the Value, add elem remya1000 General .NET 0 October 2nd, 2007 11:03 PM
need help with editing an XML file using Java Pesho_318i XML 3 January 8th, 2007 05:33 AM



All times are GMT -4. The time now is 05:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.