【Java学习】-autoboxing and unboxing

Autoboxing is the automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper class.

List<Integer> li = new ArrayList<>();
for (int i = 1; i < 50; i+=2)
	li.add(i);
posted @ 2022-02-15 12:36  易点灵通  阅读(27)  评论(0)    收藏  举报