「java」synchronized staticメソッドの書き方
Javaコード:
public synchronized static void init() throws Exception {
TreeMap<String, String> map;
DemoList();
}
public synchronized static void DemoList() throws Exception {
//some code
}
Coding Changes the World
Javaコード:
public synchronized static void init() throws Exception {
TreeMap<String, String> map;
DemoList();
}
public synchronized static void DemoList() throws Exception {
//some code
}