Answer the question
In order to leave comments, you need to log in
How to check if an array of type int contains the number 5 for example?
public static void main(String[] args) {
int[] arrey={1,9,3,4,5};
Answer the question
In order to leave comments, you need to log in
Obviously, bypass the array and compare all elements with the desired one.
The answer is easily found by a search engine.
https://stackoverflow.com/questions/6171663/how-to...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question