add scala and java interactive operation