ok after few days I am going to explain how to compare two numeric values using Java. We are simple going to find which number is the greater one. To start the program I will create a class file call Comparing. I will take two numbers as a= 20 and b= 25. To get the answer we have to find whether a=b, a>b or a<b. To solve this problem I am going to use ELSE condition on by one. So I will apply it as if ( a=b) else if (a>b) else println b is greater than a. :) If one of this conditions get execute you will get the print message as I given bellow in the code. So please see my notepad and command prompt screens that I upload with this post. I hope you can save your file and execute your files by giving proper command....
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 Comparing Values. Show all posts
Showing posts with label Comparing Values. Show all posts
Tuesday, November 16, 2010
Subscribe to:
Posts (Atom)

