adding more java codes