Java mess can you get it to work or do it over?, assignment help

Java mess can you get it to work or do it over?, assignment help

Here is the next assignment, fix my java mess.

I will attach a jpeg of the array numbers used to get a “true” outcome.

I will also attach the assignment 3 explanation.

I will also attach .java file of what i have done, but can’t get it to display and work properly.

*The columns entry only works if i put a value of 1.

* The original way i had it written all the True and False were coming up wrong so i did switch them. I did it to make this work.

Here are the book directions:

**8.19 (Pattern recognition: four consecutive equal numbers) 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. Other- wise, display false. Here are some examples of the true cases:* Please refer to the the Jpeg*


Thanks again.

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper