总结一下近期做的东西中遇到的问题 1. Java 中的 int 与 Integer 用于 List<Integer> 时 两者之间的关系都是非常清楚的.int 是基本数据类型,存储的是值,而 Integer 是引用数据类型,存储的是指向数值的地址. Integer 是在类层面上对 int 的封装.然后 Java 提供了自己主动装包拆包机制,使得两者之间能够转换.这里主要是測试了下它们用于 List 时候的疑惑. /* * To change this template, choose Too
http://darksleep.com/player/JavaAndUnsignedTypes.html —————————————————————————————————————————————————————————————— Java and unsigned int, unsigned short, unsigned byte, unsigned long, etc. (Or rather, the lack thereof) Written by Sean R. Owens, sea
转自:https://blog.csdn.net/rchm8519/article/details/23788053 1. ERROR - Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/ap
Simple add() method is used for adding an element at the end of the list however there is another variant of add method which is used for adding an element to the specified index. public void add(int index, Object element) This method adds the elemen