Question: I need it perfect and by dr java look Lab-2 (due by end of class @12:05 pm on Thursday, 7h June 2018) Task: Write a

I need it perfect and by dr java
 I need it perfect and by dr java look Lab-2 (due
by end of class @12:05 pm on Thursday, 7h June 2018) Task:

look Lab-2 (due by end of class @12:05 pm on Thursday, 7h June 2018) Task: Write a JAVA program that asks the user for input and displays a greeting Instructions: 1. You are expected to work on this lab individually. 2. Open the IDE Dr Java 3. Go to File - New Project. o Filename: MyFirstProgram Click Save. o Click OK in the next dialog box 4, Go to File ? New Java Class Filename: Greetings-YourLastName Access Modifier: public Check the Include main method checkbox Click OK o ? o 5. Your editor should now be displayed with some code. Write your name as a single line comment. 6. Import the Scanner class using the statement at the beginning of your code import java.util.Scanner; 7. Inside the main method (public static void main(String[] args), create an object of class Scanner to accept keyboard input. Scanner input - new Scannert(System.in)

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!