Update usefulMethods.java