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.
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?
/*
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;");
}
}
*/
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.
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.
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