Create Ex6.java