Question: Create a Separate class Builder.java. Declaring Class Step 2: Examining the problem, we need to create a Builder class, declare Builder class as follows public
Create a Separate class Builder.java. Declaring Class Step 2: Examining the problem, we need to create a Builder class, declare Builder class as follows public class Builder f inside the class, declare a String variable called name Remember the constructor with arguments assigns input data to the data members public Builder (String name) ( /I write the segment of code /l that assigns input data to the data members You need to supply the following get methods: getName ()to get the Name of the Builder object Hint: These method contains a line of code that returns the desired variable valueid, major... public String getiName() t // write a line of code that returns the name You should have a makeRow method. Given an integer n and string s, the method returns an other string that have n copies of s in one row Method should return a string public string makeRow(int n, String s) ( // Given an int n and string s, /I return a string that represents n copies of s in one row. //Example: n-. 5, s = ".", return a string " Write a method called makePyramid that given an odd integer n and a String s, prints a pyramidal shape
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
