Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 10th, 2011, 12:27 AM
Registered User
 
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??
 
Old October 7th, 2011, 08:12 AM
Registered User
 
Join Date: Oct 2011
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





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 07: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 06:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.