Skip to content

Instantly share code, notes, and snippets.

@danrue
danrue / arrayobjects
Created April 16, 2012 02:26 — forked from anonymous/arrayobjects
car array
public class Car2
{
private int yearModel; // The car's year model
private String make; // The car's make
private int speed; // The car's speed
private String license; // The car's license
/**
* Constructor that initializes the model, make and speed of the car.
*
@danrue
danrue / arraylist.java
Created April 16, 2012 02:10 — forked from anonymous/arraylist
Array of primitive class
import java.util.Scanner;
import java.io.*;
public class Scores
{
private final int MAX=20;
private int[] scores = new int[MAX];
private int inUse = 0;