Revert "Update ex.java"

This reverts commit 498dfde01f4183710eda8d8a07410ef2367e3fbb.