Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit cc9c3af

Browse files
author
Chris Mihaly
committed
Java 1.4 base code changes
1 parent 0295824 commit cc9c3af

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/UpdateExample.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,27 @@ public static void main(String[] args) {
3333

3434
Map r = s.update(ur);
3535
Object[] assets = (Object[])r.get("assets");
36-
System.out.println(java.util.Arrays.toString(assets));
36+
for (int index = 0; index < assets.length; index++)
37+
System.out.print(assets[index].toString());
38+
System.out.println();
3739

3840
// Now let's re-run the update in "remove" mode.
3941
modes.put("assets", "remove");
4042

4143
r = s.update(ur);
4244
assets = (Object[])r.get("assets");
43-
System.out.println(java.util.Arrays.toString(assets));
45+
for (int index = 0; index < assets.length; index++)
46+
System.out.print(assets[index].toString());
47+
System.out.println();
4448

4549
// Add it back in for the next step.
4650
modes.put("assets", "add");
4751

4852
r = s.update(ur);
4953
assets = (Object[])r.get("assets");
50-
System.out.println(java.util.Arrays.toString(assets));
54+
for (int index = 0; index < assets.length; index++)
55+
System.out.print(assets[index].toString());
56+
System.out.println();
5157

5258
// Now set a field on the connection between the Shot and Asset. To do this,
5359
// we need to pass the desired asset to the request.

0 commit comments

Comments
 (0)