Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Here is the questions i am being asked to do and here is what I have so far In this lab, you will complete the
Here is the questions i am being asked to do
and here is what I have so far
In this lab, you will complete the two Java classes provided. Start by unzipping the provided Netbeans project Row Clues Project.zip. Complete the two classes as described below. 1. Class Puzzle Row 1. Notice the already defined instance data, row, an array of int values. 2. Overloaded constructor (2nd one in code skeleton) which initializes the array to a random set of Os and 1s. Array is of the provided size (passed in as parameter). 3. Complete the default constructor which initializes the array to a random set of Os and 1s with a default array size of 5. 4. Complete the third overloaded constructor which initializes the array to the array passed as a parameter. 5. The toString() method is already defined. 6. Write a method getRowClues() which returns a String counting the number of sequential 1s. For example: Array values Return value 001010 "11" 01110011 "32" 1 0 1 1 0 0 1 1 1 0 0 0 "123" 11111010000111 "5 13" 0 100 11000 11111100 "126" 2. Class RowClues Project's main method Demonstrate the class RowClue works by providing at least two calls to each of the three constructors, and calling the toString() and getRowClues() methods for each object. package rowcluesproject; | /** Lab 1 Spring 2021 * class holds an array os Os and is representing a partial Nonogram puzzle * @author Your Names * @version Date */ public class PuzzleRow { private int[] row; public PuzzleRow () { } public PuzzleRow (int size) { } public PuzzleRow (int[] row) { } public String toString() { String result = ""; for (int i=0; iStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started