< ;
Breaking News
Loading...

Tuesday, July 09, 2019

HOW TO CHECK WHETHER NUMBER IS ODD OR EVEN IN JAVA USING NETBEANS


Image result for JAVA





CODING:


int num=Integer.parseInt(jTextField1.getText());
if(num%2==0)
jTextField2.setText("THE NUMBER IS EVEN");
else
jTextField2.setText("THE NUMBER IS ODD");

OUTPUT:




Java Introduction


What is Java?

Java is a popular programming language, created in 1995.
It is owned by Oracle, and more than 3 billion devices run Java.
It is used for:
  • Mobile applications (specially Android apps)
  • Desktop applications
  • Web applications
  • Web servers and application servers
  • Games
  • Database connection
  • And much, much more!

Why Use Java?

  • Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
  • It is one of the most popular programming language in the world
  • It is easy to learn and simple to use
  • It is open-source and free
  • It is secure, fast and powerful
  • It has a huge community support (tens of millions of developers)
  • Image result for JAVA

No comments:

Post a Comment