자바에서 표현되는 정수 리터럴은 int이므로
무리하게

long tmp = 1180925134937;

는 에러.



long tmp = Long.parseLong("1180925134937");

하면 잘 됩니다.




Posted by tenn
,