Update Flatten.java