if (FALSE) {
attach( javaImport( "java.util" ), pos = 2 , name = "java:java.util" )
# now we can just do something like this
v <- new( Vector )
v$add( "foobar" )
ls( pos = 2 )
# or this
m <- new( HashMap )
m$put( "foo", "bar" )
ls( pos = 2 )
# or even this :
Collections$EMPTY_MAP
}
Run the code above in your browser using DataLab