No Java generics do not support value types. However Java does autoboxing and unboxing. So you can do stuff like:


List<Double> nums = new ArrayList<Double>();
...

for (double num : nums) {

...

}