# This example shows how to download a jar library,
# dynamically load it and execute a class from the downloaded library.
# The downloaded jar will be located in lib/user directory.
# Second execution will skip the download
from jhplot import Web
url="http://central.maven.org/maven2/it/unimi/dsi/fastutil/8.2.2/fastutil-8.2.2.jar"
print "Loading ",url
print Web.load(url)
from it.unimi.dsi.fastutil.longs import Long2IntAVLTreeMap
m =Long2IntAVLTreeMap()
# Now we can easily modify and access its content
m.put(1, 5)
m.put(2, 6)
m.put(3, 7)
m.put(1000000000L, 10)
print m