Integer Inquiry poj1503 题目 Problem Description One of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of power ...
分类:
其他好文 时间:
2021-01-27 13:01:44
阅读次数:
0
java学习数字与字符串2 字符串转换 内容 就是字符串和数字相互转换的方法,至于用途。。刚学习也不清楚。 基本内容 数字转字符 使用String类的静态方法valueOf int i = 5; String str = String.valueOf(i); 先把基本类型封装为对象,然后调用来自上帝 ...
分类:
编程语言 时间:
2021-01-25 10:43:01
阅读次数:
0
此博客链接:https://www.cnblogs.com/ping2yingshi/p/14311268.html 数组形式的整数加法 题目链接:https://leetcode-cn.com/problems/add-to-array-form-of-integer/ 题目 对于非负整数 X 而 ...
分类:
编程语言 时间:
2021-01-22 12:22:52
阅读次数:
0
java集合 集合和数组是对多个数据进行存储操作的结构,简称java容器 数组初始化以后,其长度就确定了;数组一旦定义好,其元素的类型也就确定。 Collection接口 List接口 Vector ArrayList LinkedList Set接口 HashSet LinkedHashSet T ...
分类:
其他好文 时间:
2021-01-21 10:39:12
阅读次数:
0
1.包装类的种类 2. 转换图解 3.具体代码 public class JunitTest { //基本数据类型 > 包装类 :装箱 @Test public void test1() { //调用包装类的 构造器 int i =10; Integer int1 = new Integer(i); ...
分类:
其他好文 时间:
2021-01-19 11:59:54
阅读次数:
0
ECNU 1000 A + B Problem 链接 https://acm.ecnu.edu.cn/problem/1000 题目 单点时限: 1.0 sec 内存限制: 256 MB 输入格式 Two integer a,b(<=10) . Process to end of file. 输出格 ...
分类:
其他好文 时间:
2021-01-19 11:49:06
阅读次数:
0
Java泛型 Java1.5中引入泛型,允许在定义类、接口时,通过一个标识来表示类中某个属性的类型或是某个方法的返回值及参数类型。类型参数在使用时确定。 不使用泛型的问题 类型不安全 强制类型转换出错 集合中使用泛型 ArrayList<Integer> list = new ArrayList<> ...
分类:
编程语言 时间:
2021-01-18 11:30:29
阅读次数:
0
前言 有的时候,我们需要修改一个变量的值,但变量也许存在于 Jar 包中或其他位置,导致我们不能从代码层面进行修改,于是我们就用到了下面的场景,通过反射来进行修改变量的值。 定义一个实体类 class Bean{ private static final Integer INT_VALUE = 10 ...
分类:
编程语言 时间:
2021-01-18 11:05:15
阅读次数:
0
package mytest; public class TestInteger { public static void main(String args[]) { Integer a =127; Integer b =127; System.out.println(a==b); a=128; b ...
分类:
其他好文 时间:
2021-01-13 11:22:55
阅读次数:
0
一、数据类型 ·整数类型 ·英文为integer,简写为int,·整数的不同进制表示方式·十进制→默认的进制·二进制〉以0b开头·八进制→以0o开头·十六进制→0x开头 1 # 2 # @author:浊浪 3 # @time: 2021/1/11 19:00 4 5 #整数的表示 6 n1 = 1 ...
分类:
编程语言 时间:
2021-01-13 11:14:41
阅读次数:
0