Computer Science 225
Advanced Programming
Spring 2017, Siena College
Autobox BlueJ Project
Click here to download a BlueJ project for Autobox.
Autobox Source Code
The Java source code for Autobox is below. Click on a file name to download it.
/** * Autobox/autounbox example for CSIS 225 * * @author Jim Teresco */ import java.util.ArrayList; public class Autobox { public static void main(String args[]) { ArrayList<Double> a = new ArrayList<Double>(); a.add(7.7); double x = a.get(0); System.out.println(x); } }