share java codes