- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestSetting.java
More file actions
Latest commit
15 lines (13 loc) · 515 Bytes
/
Copy pathTestSetting.java
File metadata and controls
15 lines (13 loc) · 515 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
packagedesignPattern.Singleton;
publicclassTestSetting {
publicstaticvoidmain(String[] args) {
Settingssetting = Settings.getObject();
System.out.println("Setting Object Color: " + setting.getColor());
System.out.println("Font: " + setting.getFont());
Settingsset1=Settings.getObject();
set1.setColor("Red");
System.out.println("Set Object Color: " + set1.getColor());
System.out.println("Font: " + set1.getFont());
System.out.println("Setting Object Color: " + setting.getColor());
}
}