Good Evening I Am Trying To Code Simple Java Program And It Is Not So Simple I H

Good Evening, I am trying to code simple Java program and it is not so simple. I have it all written, I just do not understand why it is not working. I need to put my name in somewhere but I don’t know where. I am using NetBeans IDE 8.2

/**********************************************************************

*   Program:   PRG420Week1_CodingAssignment   

*   Purpose:   Week 1 Individual Assignment #2   

*   Programmer:      

*   Class:      PRG/420         

*   Creation Date:   July 19, 2018

*********************************************************************

*

**********************************************************************

*   Program Summary: This program asks the user for a one-word name

*                       and then displays a constructed greeting

*                       that looks like this:

*

*                       Hello, NAME!

**********************************************************************/

package hello.world.app;

/**

 *

 * @author

 */

import java.util.Scanner;

public class PRG420Week1_CodingAssignment {

   public static void main(String[] args) {

     // CODE usable instance of an input device   

   Scanner input= new Scanner(System.in);  

   // Prompt user for input

   System.out.print(“Insert Name Here:” );

    // Capture first word and assign it to A VARIABLE

   String str = input.next();

   // Construct the properly punctuated greeting

   System.out.println(“Hello, ” + (str) + “!”);

}

}

Prof. Angela

4.6/5

Calculate Price


Price (USD)
$
Open chat