Added usage for scala and java