java - Parse Integer error -
for reason cant string number value convert integer error run: exception in thread "main" java.lang.numberformatexception: input string: "6327818260" @ java.lang.numberformatexception.forinputstring(numberformatexception.java:65) @ java.lang.integer.parseint(integer.java:495) @ java.lang.integer.parseint(integer.java:527) @ mydirectory.getsize(mydirectory.java:18) @ a19010.main(a19010.java:79) java result: 1 if input string "6327818260" why can't become integer? code is public string getsize() { int intsize = integer.parseint(mysize); int count = 0; string datatype = ""; while (intsize > 1000) { intsize = intsize / 1000; count++; } switch (count) { case 0: datatype = "bytes"; break; case 1: datatype = "kb"; break; case 2: datatype = "mb"; break; case 3: datatype = "gb"; break; case 4: dat...