Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a file called Arrays.java to put your implementation of the following methods into. In addition, create a file ArraysTest.java that is a program to
Create a file called Arrays.java to put your implementation of the following methods into. In addition, create a file ArraysTest.java that is a program to call the methods that you implemented in Arrays.java Write code to implement the following methods: 1. Write a method, "countNumber" that has 2 parameters. The first paramenter "values' is an integer array, and the second parameter 'target' is an integer. The method should returns the number of values that match the 'target' in the array. 2. Write a method that takes a one dimensional integer array and returns the sum of the values in the array. Use an "enhanced" for loop. 3. Write a method that takes a one dimensional double array and returns the maximum value of the array. 4. Write a method that takes a two dimensional (2D) int array and returns the column index of the column whose sum is greatest. (Partial credit if you just return the sum of the column with the largest sum)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started