Coffeehouse Post

Single Post Permalink

View Thread: Java value types Vs .NET
  • User profile image
    Bass

    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) {
    
    ...
    
    }