Skip to content

Commit e012e7c

Browse files
committed
updated hello example
1 parent ccae756 commit e012e7c

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

javav2/example_code/location/src/main/java/com/example/location/HelloLocation.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,21 @@ private static LocationAsyncClient getClient() {
4949
}
5050

5151
public static void main(String[] args) {
52-
String colletionName = "ScottCollection30";
52+
final String usage = """
53+
54+
Usage:
55+
<colletionName>
56+
57+
Where:
58+
colletionName - The Amazon location collection name.
59+
""";
60+
61+
if (args.length != 1) {
62+
System.out.println(usage);
63+
System.exit(1);
64+
}
65+
66+
String colletionName = args[0];
5367
listGeofences(colletionName);
5468
}
5569

javav2/example_code/location/src/main/java/com/example/location/scenario/LocationScenario.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
package com.example.location.scenario;
5-
65
import org.slf4j.Logger;
76
import org.slf4j.LoggerFactory;
87
import java.util.Scanner;

0 commit comments

Comments
 (0)