Create a static method called findelementindex


Problem:

Question 1- Write a static method method call longCount, which is passed an array of strings, and which returns the number of strings in the array that are more than 10 characters long (and thus the method return type is int). You must use a for-each loop in your solution.

Question 2- Create a static method called findElementIndex, which takes an integer and an integer array as input parameters, and returns the smallest index where that value appears. If the value is not in the array, the method should return -1.

Please describe the code with the help of comments.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create a static method called findelementindex
Reference No:- TGS0893731

Expected delivery within 24 Hours