Java The Solution

Jamal Desir
Jamal Desir
1,184 Points

bash: Greeter.java: command not found?

For some reason, it gives me the message "bash: Greeter.java: command not found" when I run the code. Did i do something wrong? Here's my code:

import java.io.Console;

public class Greeter {

public static void main(String[] args) { Console console = System.console();

String place = "Walmart";
String firstName = console.readLine("What is your first name:  ");
console.printf("Hello %s! Welcome to %s. %n" , firstName , place);

}

}