Initial commit
This commit is contained in:
commit
054b77ccdd
27 files changed
+1362
No files matched your search
@@ -0,0 +1,14 @@
|
||||
public class Student {
|
||||
// 单例模式
|
||||
private static Student instance = null;
|
||||
|
||||
private Student() {
|
||||
}
|
||||
|
||||
public static Student getInstance() {
|
||||
if (instance == null) {
|
||||
instance = new Student();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user