Question: Provide a method named countTarget that accept a two dimensional int array and an int target as parameter. The method will return the number


Provide a method named countTarget that accept a two dimensional int array and an int target as parameter. The method will return the number of occurrence of target in the array. If target can not be found, return -1; Question 23 (3 points) Provide a method named increaseSize accepts an one dimensional int array as parameter. The method is going to increase and return a new array with 1.5 size and carries the original contents. For example, if you pass array=(1, 2, 3, 4, 5, 6} to increaseSize, it will return an array with size 9 and still carries (1, 2, 3, 4, 5, 6). (Hint: this question has been discussed in the video on increase size of array)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
