Okay the thing i want to do is make a variable like Line = “hey”,”you”,Mom”.
Then later I want to be able to call Line 0 and get the string “hey”.
I have something like this:
String[] history = new String "hey","you","Mom";
public String getLine(int index)
{
if (index < 0 || index >= this.history.length)
return null;
}
But this is not working..
How do i make this list? I’m new with the syntax in java.
It’s