001package edu.pdx.cs410J.core; 002 003import java.util.*; 004 005/** 006 * Demonstrates how wrapper objects can be used to store primitive 007 * values in a collection. 008 * 009 * @author David Whitlock 010 * @since Winter 2007 011 */ 012public class WrapperObjects { 013 014 @SuppressWarnings("unchecked") 015 public static void main(String[] args) { 016 Collection c = new ArrayList(); 017 c.add(new Integer(4)); 018 c.add(new Double(5.3)); 019 c.add(new Boolean(false)); 020 021 System.out.println(c); 022 } 023 024}