Move java ex to exercise1, add scala ex in exercise2