Update MainActivity.java

some correction according to CodeStyle.