This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |