|
|
@ -17,7 +17,7 @@ public class HostList{
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Let the user enter all server and puts it in a list
|
|
|
|
* Let the user enter all server and puts it in a list
|
|
|
|
* @return list of servers
|
|
|
|
* @return list of servers
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
public List<String> getServList(){
|
|
|
|
public List<String> getServList(){
|
|
|
@ -25,7 +25,7 @@ public class HostList{
|
|
|
|
Scanner scanner = new Scanner(System.in);
|
|
|
|
Scanner scanner = new Scanner(System.in);
|
|
|
|
String servName = "";
|
|
|
|
String servName = "";
|
|
|
|
do {
|
|
|
|
do {
|
|
|
|
System.out.println("Name of the next server:");
|
|
|
|
System.out.println("Name of the next server: (or \"stop\" when finished)");
|
|
|
|
servName = scanner.nextLine();
|
|
|
|
servName = scanner.nextLine();
|
|
|
|
if (servName != "stop"){
|
|
|
|
if (servName != "stop"){
|
|
|
|
serverList.add(servName);
|
|
|
|
serverList.add(servName);
|
|
|
|