Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Lab Description: Used nested loops to print out a letter pattern as shown below. Wrap around the letters from Z to A Sample Data Files
Lab Description: Used nested loops to print out a letter pattern as shown below. Wrap around the letters from Z to A Sample Data Files Needed rriangleFive.java TriangleFiveRunner.java B 7 2 8 Sample Output: AAAAA BB33 3339BB CCcecc DDDDD XXXXxX YYYYY 2222 AAA BB C XXxxxx YYYYY 2222 AAA BB XXxxxx YYYYY 2222 AAA XXxxxx YYYYY 2222 22222222 AAAAAAA BBB339 ccccc DDDD EEE FE 22222222 AAAAAAA BB9339B cCCCC DDDD EEE FE 22222222 AAAAAAA BB9339B cCCcC DDDD EEE 22222222 AAAAAAA BBB939 CCCCC DDDD 22222222 AAAAAAA BBB939 CCCCC 22222222 AAAAAAA BBB399 22222222 AAAAAAA import static java.lang.System.* public class TriangleFive private char letter; private int amount; public TriangleFive() public TriangleFive(char c, int amt) public void setLetter (char c) public void setAmount(int amt) public String toString() String output-"" return output import static java.lang.System.* public class TriangleFiveRunner public static void main(String args[1)
Step 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