Java experiment