Update Main.java

initiate variable limit.
Merge pull request #1 from andromeda-15/master

Update Main.java