Given a list of lists of Shapes organized in a grid, // return the shape in the
Question:
Given a list of lists of Shapes organized in a grid,
// return the shape in the given row and column.
public static Shape getShapeFromGrid(List> grid, int row,
int col) {
return null;
}
// Return true if the shape in the given location is a Triangle
// and false otherwise.
public static boolean isTriangle(List> grid, int row, int col) {
return false;
}
// Return true if the shape in the given location is a Square
// and false otherwise.
public static boolean isSquare(List> grid, int row, int col) {
return false;
}
// Concatenate all of the Strings in the grid by going row by row.
// If a row or row and column location is null, then just concatenate
// in an empty string.
public static String byRow(List> grid) {
return null;
}
Business Statistics A Decision Making Approach
ISBN: 9780133021844
9th Edition
Authors: David F. Groebner, Patrick W. Shannon, Phillip C. Fry