Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

JAVA - Return even integers in an array

anonymous
anonymous 


Write a JAVA method that will return the number of even integers in the supplied array. Attachments
Tags Clarifications

Answers

Even integer JAVA method

Seeker
Seeker 



Source code in attached file Attachments
EvenIntegers.java (1 K) Download Preview
for(int num : integers){ if(num %

Screenshots
Purchase Answer

Even Integers

dianagaby2002
dianagaby2002 



- user will be asked the number of elements
he wants to enter(n)

- then press a number+enter and so on n times

- the built array will be displayed(myArray)

- the number of even numbers will be displayed
Attachments
details.txt (1 K) Download Preview
be asked the number of elements he wants to enter(n) - then press a number+enter and so on n times - the built array

EvenInts.java (1 K) Download Preview
the supplied array. * */ import java.util.Scanner; public class EvenInts { //x[] is myArray[] static int isEven(int x[]){ int n = x.length; // length of myArray int numberOf = 0; //number of even integers for(int i = 0;

Screenshots
Purchase Answer