Datasets:

ArXiv:
License:
denisko's picture
cnanged dir structure and removed features file
3e77472
raw
history blame
596 Bytes
package singleton;
/**
* Created by Administrator on 2017/6/19.
*/
public class ChocolateBoiler
{
private static ChocolateBoiler chocolateBoiler;
private boolean isEmpty;
private ChocolateBoiler()
{
isEmpty = true;
System.out.println("Initial");
}
public static ChocolateBoiler getInstance()
{
if (chocolateBoiler == null)
{
chocolateBoiler = new ChocolateBoiler();
}
return chocolateBoiler;
}
public void fill()
{
if(isEmpty)
{
isEmpty = false;
}
}
}