Home Discussion Discuss: Java Comments

  • What are comments and its types?Ashok Kumar Singh May 24, 2011 at 10:37 AM

    Comments improve the readability of a program. They are ignored by the compilere and will not be executed. Single line comments: If a line of text begins with // , then it will be treated as a single line comment. Multi-line comments: Any text or lines of text written within /* ...*/ is treated as a comment.

  • more powerfull languagezacharia mrisho May 31, 2011 at 10:50 PM

    hey guys. am an electronic scientist. i wanted to know, between java and C programming languages, which one is more powerful when it comes to direct communication with hardware devices?

  • SuggestionVinoth June 18, 2011 at 8:40 AM

    I know c and c languages...i want to know java ..is it easy to learn or not:)

  • syntaxdhruva October 25, 2011 at 12:52 PM

    import java.util.Scanner; public class test { public static void main(String args[]) { float quarter[]; int comAmt,i; float topup[],totaltopup=0,quarterBonus[],totalQuarter=0,annualBonus,totalquarterBonus=0; float totalBonus,total; quarter=new float[4]; topup=new float[4]; quarterBonus=new float[4]; addthis ob=new addthis(); verexchange a=new verexchange(); System.out.println("Quarterly Bonus Rate is: "+a.quarterlyRate); Scanner in = new Scanner(System.in); System.out.println("Enter Commited Amount "); comAmt = in.nextInt(); for(i=0;i<4;i++) {System.out.println("Enter Amount for Quarter"+(i+1)); quarter[i] = in.nextInt(); totalQuarter=totalQuarter+quarter[i];} ob.PrintArray(quarter); System.out.println(" The Commited Amount is"+comAmt); for(i=0;i<4;i++) {if(quarter[i]>(3*comAmt)) topup[i]=(float) (0.75*(3*comAmt)); else topup[i]=0;} for(i=0;i<4;i++) totaltopup=totaltopup+topup[i]; for(i=0;i<4;i++) {if(quarter[i]>(3*comAmt)) quarterBonus[i]=(float) (0.03*(3*quarter[i])); else quarterBonus[i]=0; totalquarterBonus=totalquarterBonus+quarterBonus[i];} if(totalQuarter>(12*comAmt)) annualBonus = (float) (0.05*totalQuarter); else annualBonus=0; totalBonus= ob.ArraySum(annualBonus, totalquarterBonus); total=totalBonus+totalQuarter+totaltopup; for(i=0;i<4;i++) System.out.println(" The Quarterly Bonus is"+quarterBonus[i]); System.out.println(" The Total Quarterly Bonus is"+totalquarterBonus); System.out.println(" The Annual Bonus is"+annualBonus); System.out.println(" The Total Bonus is"+totalBonus); System.out.println(" The Amount Paid at end of year is"+total); } }

  • FreedomEdossa Kenea February 22, 2012 at 2:52 PM

    /* Class i and my familie's by freedom keeping modern international rule of low bealive live{ Public string void main(string args[]){ String.out.printIn("i and my familie's by freedom keeping modern international rule of low live;"); } } */

  • java programminganonimous May 13, 2012 at 12:04 PM

    The dialog box will be centered over the component given in the first parameter. Typically you would give the window over which it should be centered. If your program doesn't have a window, you may simply write null, in which case the dialog box will be centered on the screen.

  • where can i exercise in your site?marion July 13, 2012 at 10:11 PM

    hello, where can i exercice programming in your site? it's will be better to me to exercise directly in your site, and not to download a java. Because in my country, Internet is expensive. and if i have problems issues in my programs, i could ask you directly. And i insist, try to create this site in french. I don't understand well english.

Post your Comment



Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Related Articles
Java Tips and Examples

Comments
, or Thai, or ... . Java ignores all comments. There is, however.... Java comments // comments -- one line After the two // characters... Java NotesComments Computer programs are read by both computes and humans 

Programming Tutorials

Java Comments
Java Comments      ...; There are three types of comments used in Java. These are: 1. // text   To add... sequence. */ Slash-star comments may also be placed between any Java tokens: int 

General

Java Comments - Java Tutorials
.style1 { text-decoration: underline; } Comments in Java Comments in Java holds the description or hint about the code or explanations... ignore these comments and do not compile it. Types of comment Java supports 

HTML Questions

include comments in HTML
include comments in HTML  How can I include comments in HTML 

Java Beginners

various types of comments
various types of comments  Explain various types of comments supported by Java.   Please visit the following link: Java Comments 

PHP Tutorial

PHP Comments
PHP Comments: Most of the popular languages (C, C++, Unix) uses same kind of comments, single line (//) and more than one line comments (/* */) and along... comments ( // ) is used to make a single line or a block inactive. Similarly 

JSP Tutorials

Comments in Jsp
by the jsp engine into java comments in the source code of the servlet...Comments in Jsp          In a jsp we should always try to use jsp- style comments 

Java Tips and Examples

Java Comments
Java Comments      ... these comments are ignored by the Java compiler, they are included in the program....  There are three types of comments used in Java. These are: 1. // text 

General

Java Comments
Java Comments      ...; There are three types of comments used in Java. These are: 1. // text   To add... sequence. */ Slash-star comments may also be placed between any Java tokens: int 

XML Questions

How to get the position of the comments in the pdf
How to get the position of the comments in the pdf  how to get the postion of comments, in the extracted xml, from pdf 

JavaScript Questions

How to get the position of the comments in the pdf
How to get the position of the comments in the pdf  how to get the postion of comments, in the extracted xml, from pdf 

JSP Tutorials

JSPs : Comments
JSPs : Comments This tutorial contains description of comments which is one of JSP page element. Comments : Comments help in understanding what is actually code doing. JSPs provides two types of comments for putting comment 

JSP-Tutorials

Comments in Jsp
JSP comments are very similar to HTML. They are not displayed in the Output... of comments are allowed in a JSP page: Hidden comment Such comments written under... comment: Such comments written under <!-- Output comment> and appears 

HTML Questions

Posting comments to same page with textarea
Posting comments to same page with textarea  I have been given some code which allows a user to type a comment and on submit it will return the text... comments as well rather than overwriting the original?. I hope it is not to much 

iPhone

Message Expressions and comments
Message Expressions and comments       Like C and C++ objective-C provides comments. Programmer can use single or multi line comments in the code according to the need. Message 

General

Doclet for finding missing comments - Java Tutorials
Doclet for finding missing comments 2002-06-05 The Java Specialists' Newsletter [Issue 049] - Doclet for finding missing comments Author: Dr. Heinz M... or RSS. Welcome to the 49th edition of The Java(tm) Specialists 

Java-Tutorials

Comments in Java Code
Comments in Java code required to write description about a method, function... number of comments lines you want in your Java code. In Java programming... This type of comments is used to write a single line comments in Java. The Java 

XML

Ignoring Comments While Parsing an XML File
Ignoring Comments While Parsing an XML File       This Example shows you how to Ignore Comments... in code given below for Ignoring Comments is described below 

XML Tutorials

Ignoring Comments While Parsing an XML File
 

JSP Tutorials

Submit comments in database when user clicks on submit button
Submit comments in database when user clicks on submit button       This is detailed java code to show how to submit comments from a jsp page and insert it to the MySql 

PHP Tutorial

Use of Comment Function in PHP
Use of Comments Function PHP Sometimes we need to hide some text in a program, at that case we should put all those codes within comments. Line of Comments... need to use your coding, it is also useful if you are working alone, comments 

General

Java Language
Java Language       Java Comments To comprehend any programming language, there are several kind of comments which are used. These comments are advantageous 

Eclipse Plugins

EasyEclipse for Python
;  There are currently 10 comments for this distribution. You can... services from Eclipse - Getting started. Java for Windows - Run Java application on Sun Java(tm) runtime, packaged for Eclipse use. (Windows only 

Eclipse Plugins

EasyEclipse for Ruby and Rails
;    There are currently 9 comments for this distribution... platform services from Eclipse - Getting started. Java for Windows - Run Java application on Sun Java(tm) runtime, packaged for Eclipse use 

Eclipse

Reduce Java Code commenting effort using JAutodoc (eclipse plugin)
Reduce Java Code commenting effort using JAutodoc (eclipse plugin... helps in generating javadoc style comments very easily. Apart from adding the template for javadoc style comments for the class/method & attributes 

JavaScript Tutorial

JavaScript Comment
JavaScript Comment: Comments are placed within the programming language... text in a program, at that situation we should put all those codes within comments. Line of Comments generally use for putting important information of variables 

Web Development

Social media marketing - frequently asked questions
bigger. This has given rise to all sorts of comments, suggestions, complaints... include number of comments, hits, as well as sales. How do you avoid failing 

Ajax

Script#
checking, error reporting, intellisense, refactoring, class browsing, doc-comments etc 

Eclipse Plugins

Afae - An All-purpose Editor for Eclipse
plugin for posting to your blog * Keystroke comments * An image viewer 

Eclipse Plugins

Protocols
; Partitioning the source code into sections, using comments as headers... by the standard Java browsing views in Eclipse 3.0. The Protocols plug... through a new Java Browser view and in the source code as headers. The plug-in offers 

DMCA.com