There are two problems in this homework.
Problem 1
Write a method called numberOfOdds that takes as input an array of integers,
and returns an integer that equals the number of integers in the array that
are odd. This program contains a
dummy method called numberOfOdds, and your solution should fill out the body
of the method. After doing this, submit the .java file only into the dropbox in
ICON called Homework1.
Problem 2
Write a method called existDuplicates that takes as input an array of integers,
and returns true or false depending on whether the array has duplicates or
not. This program contains a dummy method
called existDuplicates, and your solution should fill out the body of the
method. After doing this, submit the .java file only into the dropbox in
ICON called Homework1.
To work on one of these problems using netBeans, you will have to open a
new project on netBeans and then cut and paste the relevant stuff
from the incomplete program I have written. I will explain this in
class.