Question: Write a Java class that outputs 5 lines as shown below. Name your class Prog 1 _ 3 A _ Lastname. Copy&Paste your code and

Write a Java class that outputs 5 lines as shown below. Name your class Prog1_3A_Lastname. Copy&Paste
your code and screenshot your console output. (Note: line numbers are for reference purposes only; do not
type line numbers in your program):
Your name
Your address
Your Major
5
Use System.out.print(); statements for Your name and Your address and use
System. out . println() ; statements for Your Major and blank lines between each line of output. To print
a blank line, you can use, System.out.println(); with nothing in the parenthesis.
Write a Java class that displays the following pattern. Name your class Prog1_3B_Lastname. Screenshot your
console output.
Please note the following Rubric:
Write a Java class that outputs 5 lines as shown

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!