1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Pani-rosa [81]
4 years ago
6

Make a java program to enter a two-digit integer and determine if both digits are prime

Computers and Technology
1 answer:
Andre45 [30]4 years ago
8 0
Package com.java2novice.algos; public class MyPrimeNumCheck {     public boolean isPrimeNumber(int number){                 for(int i=2; i<=number/2; i++){            if(number % i == 0){                return false;            }        }        return true;    }         public static void main(String a[]){        MyPrimeNumCheck mpc = new MyPrimeNumCheck();        System.out.println("Is 17 prime number? "+mpc.isPrimeNumber(17));        System.out.println("Is 19 prime number? "+mpc.isPrimeNumber(19));        System.out.println("Is 15 prime number? "+mpc.isPrimeNumber(15));    }

You can find this code at
http://www.java2novice.com/java-interview-programs/is-prime-number/

You might be interested in
It destructs microorganisms in containers
Kitty [74]

Answer:

hope you like this ans

Explanation:

using heat in cleaning containers prevents the spread of poisoning and halts the microorganism to multiply and infest the food that will be placed in containers.

5 0
3 years ago
which option will joan use to get a glimpse of how her presentation will look like when she presents it to her audience
harina [27]
She should use slideshow
4 0
4 years ago
Read 2 more answers
Write a JavaScript program to generate the following pattern but the number of rows should be user input.
Nookie1986 [14]

Answer:

Testicles

Explanation:

u sukkk

3 0
3 years ago
How do ACLs work on a router?
serg [7]

Answer:

An ACL is a list of permit or deny rules detailing what can or can't enter or leave the interface of a router. Every packet that attempts to enter or leave a router must be tested against each rule in the ACL until a match is found. If no match is found, then it will be denied.

Explanation:

PLEASE MARK ME AS BRAINLIEST

6 0
3 years ago
A media file refers to what kind of file? A. Clip art
prohojiy [21]

Waveform Audio (.wav) is a common file format. Created by Microsoft and IBM, WAV was one of the first audio file types developed for the PC. WAV files are defined as lossless, meaning that files are large and complete; nothing has been lost.

your answer will be

<h2><em><u>C; image</u></em></h2>
5 0
4 years ago
Read 2 more answers
Other questions:
  • I need help to find out what is wrong with this program and my variable, "exponent" comes out as 0 in the output instead of the
    14·1 answer
  • What can be done to improve the security of business uses of the Internet? Give several examples of ecurity measures and technol
    9·1 answer
  • When a defendant pleads guilty to one offense just to have another offense dropped, this is what type of plea bargain
    12·2 answers
  • A dmz is a subnet of _____________ accessible servers placed outside the internal network.
    10·1 answer
  • Plato: A university wants to install a client-server network. Which feature do you think is important for them as they set up th
    5·1 answer
  • write a function that given an integer Y and 3 non-empty string A,B,W, denotingthe year of vacations, the beginning month, the e
    5·1 answer
  • What is the name of tool
    11·1 answer
  • Write the issue related to the cyber ethnic. ​
    7·2 answers
  • Question 1 of 10
    14·2 answers
  • What technological development happened most recently?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!