Hello i am currently starting to write a text adventure game in java but i havent been able to find a line of code that allows the computer to keep going and not end after displaying a the first message. Im using Eclipse classic if that makes any diffrence also im using this as a reference:
import java.util.Scanner;
public class Custom_Methods_Return_Statements_and_Parameters {
static Scanner input = new Scanner(System.in);
public static void main(String[] args){
}
public static void inputTest(){
String message = input.nextLine();
System.out.println(Hello(message));
//Note this is case sensitive if you type Hi instead of hi it will not say Hello!
}
public static String Hello(String message){
if (message.equals("Hi")){
return "Hello";
}else{
return "Goodbye";
}
}
}
<YOUR CODE HERE>