Data update

This commit is contained in:
Ingy döt Net 2023-09-16 17:28:03 -07:00
parent 5af6d93694
commit 796d366b97
455 changed files with 7413 additions and 1900 deletions

View file

@ -1,20 +1,15 @@
class Singleton
{
private static Singleton myInstance;
public static Singleton getInstance()
{
if (myInstance == null)
{
myInstance = new Singleton();
}
public enum Singleton {
INSTANCE;
return myInstance;
// Fields, constructors and methods...
private int value;
Singleton() {
value = 0;
}
protected Singleton()
{
// Constructor code goes here.
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
// Any other methods
}