![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 22.11.2021 20:30 kenzietaylre
Given the following code, what logic would you need to include to determine how many times the number 2 appears within the array:
int[] myArray = {1,2,3,2,5,6,2,8,2,10};
for (int i = 0; i < myArray. length; i++) {
//your code goes here
}
Sample Output: The number 2 appears 4 times in this array.
NOTE: Your response should be just the missing logic--not the entire problem set.
![ansver](/tpl/images/cats/User.png)
Answers: 3
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 10:00
According to alisa miller foreign news bureaus
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 12:30
An atom's diameter is about 0.1 nanometer (1Ă—10-9m), and a human hair is about 1Ă—10-3m. how many times greater is a human hair than an atom's diameter? sorry pushed wronf button but this is math
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 07:00
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
You know the right answer?
Given the following code, what logic would you need to include to determine how many times the numbe...
Questions
![question](/tpl/images/cats/istoriya.png)
History, 12.01.2020 22:31
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 12.01.2020 22:31
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/health.png)
Health, 12.01.2020 22:31
![question](/tpl/images/cats/mat.png)
Mathematics, 12.01.2020 22:31
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/geografiya.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 12.01.2020 22:31
![question](/tpl/images/cats/biologiya.png)
Biology, 12.01.2020 22:31
![question](/tpl/images/cats/mat.png)
Mathematics, 12.01.2020 22:31
![question](/tpl/images/cats/geografiya.png)
Geography, 12.01.2020 22:31
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 12.01.2020 22:31
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 12.01.2020 22:31
![question](/tpl/images/cats/mat.png)
Mathematics, 12.01.2020 22:31
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/ap.png)
Advanced Placement (AP), 12.01.2020 22:31
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mkx.png)
Arts, 12.01.2020 22:31