... | @@ -42,21 +42,21 @@ System.out.println("Hello! Welcome to this Google Earth Tweet and WMS Mapper.\n\ |
... | @@ -42,21 +42,21 @@ System.out.println("Hello! Welcome to this Google Earth Tweet and WMS Mapper.\n\ |
|
|
|
|
|
2. Ask the user if they would like to see additional information on the WMS while the programme is running
|
|
2. Ask the user if they would like to see additional information on the WMS while the programme is running
|
|
|
|
|
|
`
|
|
```
|
|
Scanner askServiceInfo = new Scanner(System.in);
|
|
Scanner askServiceInfo = new Scanner(System.in);
|
|
String answer;
|
|
String answer;
|
|
System.out.println("Would you like additional information on the WMS service while the programme runs? Type Y for yes or anything else for no and hit enter.");
|
|
System.out.println("Would you like additional information on the WMS service while the programme runs? Type Y for yes or anything else for no and hit enter.");
|
|
answer = askServiceInfo.next();
|
|
answer = askServiceInfo.next();
|
|
`
|
|
```
|
|
|
|
|
|
3. Ask the user if they would like to proceed to launch Google Earth. This step also made sure that the programme would halt again (giving the user some time to actually read the console output before Google Earth launches). If the users does not answer with some form of "yes", the programme will end with a friendly good-bye message.
|
|
3. Ask the user if they would like to proceed to launch Google Earth. This step also made sure that the programme would halt again (giving the user some time to actually read the console output before Google Earth launches). If the users does not answer with some form of "yes", the programme will end with a friendly good-bye message.
|
|
|
|
|
|
`
|
|
```
|
|
Scanner askContinue = new Scanner(System.in);
|
|
Scanner askContinue = new Scanner(System.in);
|
|
String answer1;
|
|
String answer1;
|
|
System.out.println("Would you like to proceed to launch Google Earth now? Type Y for yes or anything else for no and hit enter.");
|
|
System.out.println("Would you like to proceed to launch Google Earth now? Type Y for yes or anything else for no and hit enter.");
|
|
answer1 = askContinue.next();
|
|
answer1 = askContinue.next();
|
|
`
|
|
```
|
|
|
|
|
|
|
|
|
|
## Creating a Central Class from which to Execute the Whole Programme
|
|
## Creating a Central Class from which to Execute the Whole Programme
|
... | | ... | |