Question: Write a Java program to print 'Hello' on screen and then print your name on a separate line. A. Create a new Class called Lab6-1

Write a Java program to print 'Hello' on screen and then print your name on a separate line. A. Create a new Class called "Lab6-1" B. Declare a variable called name. C. Initialize the variable name with your name. D. Print Hello and your name on separate lines.

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 Databases Questions!