Update TwoB.java

finished average