Please help write the code under the chessboard class.

Anonymous
timer Asked: Jan 30th, 2021

Question Description

I'm working on a java multi-part question and need an explanation to help me learn.

In this exercise, you will create a full 8x8 chess board.

First, initialize an 8x8 2D String array. Then, populate the first and last array in the 2D array with the correct chess pieces. The rest of the arrays should be filled with Strings with the value "-".

When printed using the provided method, the result should look like:

https://drive.google.com/file/d/1PNfKlfCd14vdFZkkcBon7YoK07Xxgfqn/view?usp=sharing
 public class ChessBoard
{
    public static void main(String[] args)
    {
       
        //Use this method to print the chess board onto the console
        
        
    }
    
    //Do not make alterations to this method!
    public static void print(String[][] array)
    {
        for(String[] row: array)
        {
            for(String thing: row)
            {
                System.out.print(thing + "\t");
            }
            System.out.println();
        }
    }
}

Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!

Similar Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors