zoukankan      html  css  js  c++  java
  • [Android错误]The literal 100000000000000 of type int is out of range

    原来在Java代码中直接书写的数字是int类型的,就是说数字的范围在 -2^31 到 2^31 - 1 这个范围之中,无论将这个数字赋值给什么类型。

    不过有的时候需要直接赋值大的数字,如果想直接赋最大值的时候只需要转换一下就行了Long.parseLong()

    参考:http://davidxiaozhi.iteye.com/blog/700546

  • 相关阅读:
    例6-5
    例6-3
    例6-2
    例6-1
    例5-9
    python3
    python3
    python3
    python3
    python3
  • 原文地址:https://www.cnblogs.com/cc-Cheng/p/3222618.html
Copyright © 2011-2022 走看看