[Mini Project] Library Service : 로우 데이터(Singleton 활용)
·
◈ Human Project/Mini : Library Service📚
- Library Service : 로우 데이터(Singleton 활용) // Singleton: 기본데이터 저장 private static LibServiceImpl libServiceImpl = new LibServiceImpl(); private LibServiceImpl() { } public static LibServiceImpl getInstance() { // Singleton 생성 return libServiceImpl; } // 싱글턴 변수 private List books = new ArrayList(); // Book data private List lBooks = new ArrayList(); // LibBook data private List users = new ArrayList..