I haven't tried running your code, but one pretty obvious problem is using the equals operator (==) for comparing strings. This doesn't quite work as you'd expect in Java. What's happening is that you are comparing the memory locations of these strings, not the actual content. Which probably isn't what you intended. Instead, try using String's equals function, like so:
if (command.equals("g")){
getNames();
}
if (command.equals("a")){
addToList();
}
if (command.equals("q")){
isRunning = false;
System.exit(0);
}
Hope that helps you along!

Find content
Not Telling