Would there be a way to do this simplier?
Instead of this
Something likeCode:if (pre2 == "0\n"||pre2 == "1\n"||pre2 == "2\n"|| pre2 == "3\n"||pre2 == "4\n"||pre2 == "5\n"|| pre2 == "6\n"||pre2 == "7\n"||pre2 == "8\n"||pre2 == "9\n")
(pre2 == int'\n')
I know its not good but you can get the idea what i mean.