Move java example to exercise1, add scala example in exercise2