Bug Sniper
CodeRabbit
残り時間: 60s
スコア: 0
コンボ: 0x
Level 3 | java
発見: 0 / 1
1public class Singleton {
2 private static Singleton instance;
3
4 private Singleton() {}
5
6 public static Singleton getInstance() {
7 if (instance == null) {
8 instance = new Singleton();
9 }
10 return instance;
11 }
12}