Java Program for Integer Check
Not what you're looking for?
I have to write a Java program that reads an integer and checks whether it is even.
If my input is 25, my output should be:
Is 25 even?
false
If my input is 2000, my output should be:
Is 2000 even?
true
Also, the program must check if the number the user entered is between 1 and 1000.
If my input is 25, my output should be:
The number 25 between 1 and 1000 is true.
If my input is 2000, my output should be:
The number 2000 between 1 and 1000 is false.
1. The input and output must use JOptionPane dialog and display boxes.
Purchase this Solution
Solution Summary
This solution contains a java code that checks even integers in various cases and also uses JOptionPane and display boxes.
Purchase this Solution
Free BrainMass Quizzes
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
Javscript Basics
Quiz on basics of javascript programming language.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
Word 2010: Tables
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.
Basic Networking Questions
This quiz consists of some basic networking questions.