public class Foo {
public void putAt(java.lang.String s, java.lang.Integer x, java.lang.Object value) {

}

public java.lang.Object getAt(java.lang.String s, java.lang.Integer x) {
return new java.lang.Object();
}

}
public class arrayAccess extends groovy.lang.Script {
public static void main(java.lang.String[] args) {
new arrayAccess(new groovy.lang.Binding(args)).run();
}

public java.lang.Object run() {
java.util.HashMap<java.lang.String, java.lang.String> map = new java.util.HashMap<java.lang.String, java.lang.String>();

print(putAt0(map, "1", "6"));
print(putAt0(map, 2, "7"));
map.put("6", 1);

print(map.get("1"));
print(map.get(2));



Foo foo = new Foo();
org.codehaus.groovy.runtime.DefaultGroovyMethods.putAt(foo, "a", 2);
print(putAt1(foo, "a", 2, 4));

print(foo.getAt("b", 1));
print(org.codehaus.groovy.runtime.DefaultGroovyMethods.getAt(foo, "4"));

java.lang.Integer[] arr = new java.lang.Integer[]{1, 2, 3};
print(arr[1]);
return arr[1] = 3;

}

public arrayAccess(groovy.lang.Binding binding) {
super(binding);
}
public arrayAccess() {
super();
}
private static <K, V, Value extends V>Value putAt0(java.util.Map<K, V> propOwner, K key, Value value) {
propOwner.put(key, value);
return value;
}
private static <Value>Value putAt1(java.lang.Object propOwner, java.lang.String property, Value newValue) {
org.codehaus.groovy.runtime.DefaultGroovyMethods.putAt(propOwner, property, newValue);
return newValue;
}
}
