Java The Solution

Jamal Desir
Jamal Desir
1,184 Points

bash: command not found?

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


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);