It runs but repeats the "Enter Name" command twice
Please debug and repost thank you!!!!
This program asks for the users name and displays it (Using separate Method)
*package debugthree3; import java.util.Scanner; public class DebugThree3 { public static void main(String args[]) { String name; name = getName(); displayGreeting(name); } public static String getName() { String name; Scanner input = new Scanner(System.in); System.out.print("Enter name "); name = input.nextLine(); return name; } public static void displayGreeting(String name) { System.out.println("Hello, " + getName() + "!"); } }