add data and java codes