Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
Java

Wrapper Classes in Java

Use Integer, Double, Boolean, and other wrappers for primitives in collections.

Wrapper Classes in Java — a practical guide to Java wrapper classes with clear examples you can reuse in real projects.

Java Tutorial Series (59/90). Prefer one article? Read the complete Java tutorial.

Short description

Autoboxing converts between primitives and wrappers automatically.

Autoboxing

Integer x = 10; // autobox
int y = x;      // unbox
List<Integer> nums = List.of(1, 2, 3);

Leave a reply

Your email address will not be published. Required fields are marked *