write the following method that tests whether a two-dimensional

Project Description:

write the following method that tests whether a two-dimensional array has four consecutive numbers of the same value, either horizontally, vertically, or diagonally.public static boolean isconsecutivefour(int[][] values)write a test program that prompts the user to enter the number of rows and columns of a two-dimensional array and then the values in the array and displays true if the array contains four consecutive numbers with the same value.otherwise, display false. here are some examples of the true cases:
Skills Required:
Project Stats:

Price Type: Negotiable

Expired
Total Proposals: 4
1 Current viewersl
12 Total views
Project posted by:

Proposals

Proposals Reputation Price offered
  • 4.9
    7 Jobs 7 Reviews
    $0 in 0 Day
  • 4.1
    70 Jobs 30 Reviews
    $0 in 0 Day