|
@@ -37,6 +37,8 @@ Write a method in the Arraz class for each of these:
|
37
|
37
|
* Make a method named `getOddEvensOfArray`
|
38
|
38
|
* Method takes an argument of array of `Integer` objects
|
39
|
39
|
* Method returns an object of type `OddEven` such that `OddEven` stores the number of `odds` and `evens` in the respective fields
|
|
40
|
+
|
|
41
|
+* Example of OddEven class
|
40
|
42
|
```java
|
41
|
43
|
public class OddEven{
|
42
|
44
|
public int odds;
|
|
@@ -51,7 +53,6 @@ public class OddEven{
|
51
|
53
|
* insert an element into an array a specific position `insertIntoArrayAt`
|
52
|
54
|
* find the maximum and minimum value of an array `findMaxMinOfArray` return a
|
53
|
55
|
|
54
|
|
-* Example of MaxMin class
|
55
|
56
|
```java
|
56
|
57
|
public class MaxMin{
|
57
|
58
|
int max, max;
|