Update Main.java

a little optimisation
(removed the array shite)