Question

Write a JAVA program that declares and initializes an array with the following numbers: 10, 89,...

Write a JAVA program that declares and initializes an array with the following numbers: 10, 89, 50, 24, 60, 1, 15. Then ask the user for a number and check if the array contains that number. If it does, return a message to the user (print to screen) that says

0 0
Add a comment Improve this question Transcribed image text
Answer #1
int[] myIntArray = new int[7];
int[] myIntArray = {1,2,3,4,5,6,7};
int[] myIntArray = new int[]{1,2,3,4,5,6,7};
Add a comment
Know the answer?
Add Answer to:
Write a JAVA program that declares and initializes an array with the following numbers: 10, 89,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT