Ok now we are going to learn some thing new.Very useful for your calculation parts in your program. You store the result of a calculation in a variable by using an assign statement. An assignment statement consist of three elements, the name of the variable where you want the result stored, the assignment operator,=, which indicates that this indeed an assignment operation, and an arithmetic expression that defines the calculation you want to perform.The whole thing is terminated by semi colon that marks the end the assign statement.
numFruit=numApples=numOranges; // calculate the total
My dear friends,my site is all about JAVA programming language.I think all you know about Java.It is an Open source language.My vision is to share my Java programming language all over the world.Here is the mission for that.So please feel free to share your programming with this blog.Java is on the top of best programming language in the world.It is not a difficult language to learn.So please be with me until my Java video lessons come.I need your feedback.Lets ruin the world with JAVA.
Showing posts with label Operators in Java. Show all posts
Showing posts with label Operators in Java. Show all posts
Wednesday, November 24, 2010
Subscribe to:
Posts (Atom)