java array repeating

Solutions on MaxInterview for java array repeating by the best coders in the world

showing results for - "java array repeating"
Carolina
31 Jan 2019
1int num=5, veses=2, encontrado=0, arr[4,5,2,4,5,9,9,4,4];
2boolean success=false;
3for (int i=0, i < arr.lenth; i++){
4	if(arr[i]==num){
5    encontrado++;
6	}
7}
8if(encontrado>=veses){
9success = true;
10}
similar questions
queries leading to this page
java array repeating