... | @@ -33,7 +33,7 @@ Specifically, we wanted to allow user input for these decisions: |
... | @@ -33,7 +33,7 @@ Specifically, we wanted to allow user input for these decisions: |
|
**1.** Ask the user to **choose a local directory**, where the programme would store the tweets.csv, tweets.kml, boston.png, and boston.kml files.
|
|
**1.** Ask the user to **choose a local directory**, where the programme would store the tweets.csv, tweets.kml, boston.png, and boston.kml files.
|
|
|
|
|
|
|
|
|
|
```
|
|
```java
|
|
Scanner askUser = new Scanner(System.in);
|
|
Scanner askUser = new Scanner(System.in);
|
|
System.out.println("Hello! Welcome to this Google Earth Tweet and WMS Mapper.\n\nBefore we get started, could you please enter a local directory (= a folder) where a few files may be stored?\n"
|
|
System.out.println("Hello! Welcome to this Google Earth Tweet and WMS Mapper.\n\nBefore we get started, could you please enter a local directory (= a folder) where a few files may be stored?\n"
|
|
+ "Simply enter a filepath below and hit enter.\nAn example would look like this: C:\\\\Users\\\\Christina\\\\Documents\\\\EoT");
|
|
+ "Simply enter a filepath below and hit enter.\nAn example would look like this: C:\\\\Users\\\\Christina\\\\Documents\\\\EoT");
|
... | @@ -45,7 +45,7 @@ System.out.println("Hello! Welcome to this Google Earth Tweet and WMS Mapper.\n\ |
... | @@ -45,7 +45,7 @@ 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.
|
|
|
|
|
|
|
|
|
|
```
|
|
```java
|
|
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.");
|
... | @@ -57,7 +57,7 @@ Scanner askServiceInfo = new Scanner(System.in); |
... | @@ -57,7 +57,7 @@ Scanner askServiceInfo = new Scanner(System.in); |
|
**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.
|
|
|
|
|
|
|
|
|
|
```
|
|
```java
|
|
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.");
|
... | | ... | |