1) Write?a Java program (non-GUI preferred) to demonstrate the Singleton pattern.
The key parts of the singleton pattern are:
- A private static variable to store the single instance called the singleton
- A public static method for callers to get a reference to the instance
2) Using?these key parts, write a Java program that will allow a user of the program to assign only one runner to each of the 8 lanes of running track in a field.
this is my assignment. i have part one down i need help with part 2)
what is the best way to go about this? should i use an array?