Datasets:
ArXiv:
License:
Download data/test/Hugo-Gao/Design-pattern/Singleton/src/singleton/Main.java from RepoFusion/Stack-Repo: direct link, hf CLI and curl.
- Browser
- Download file 1.8 kB
-
https://huggingface.co/datasets/RepoFusion/Stack-Repo/resolve/main/data/test/Hugo-Gao/Design-pattern/Singleton/src/singleton/Main.java
- Command line
-
hf download hf://datasets/RepoFusion/Stack-Repo/data/test/Hugo-Gao/Design-pattern/Singleton/src/singleton/Main.java
-
curl -L -o Main.java https://huggingface.co/datasets/RepoFusion/Stack-Repo/resolve/main/data/test/Hugo-Gao/Design-pattern/Singleton/src/singleton/Main.java
1.8 kB
| package singleton; | |
| /** | |
| * Created by Administrator on 2017/6/19. | |
| */ | |
| public class Main | |
| { | |
| public static void main(String[] args) | |
| { | |
| new Thread(new Runnable() | |
| { | |
| public void run() | |
| { | |
| Singleton.getInstance(); | |
| } | |
| }).start(); | |
| new Thread(new Runnable() | |
| { | |
| public void run() | |
| { | |
| Singleton.getInstance(); | |
| } | |
| }).start(); | |
| new Thread(new Runnable() | |
| { | |
| public void run() | |
| { | |
| Singleton.getInstance(); | |
| } | |
| }).start(); | |
| new Thread(new Runnable() | |
| { | |
| public void run() | |
| { | |
| Singleton.getInstance(); | |
| } | |
| }).start(); | |
| new Thread(new Runnable() | |
| { | |
| public void run() | |
| { | |
| Singleton.getInstance(); | |
| } | |
| }).start(); | |
| new Thread(new Runnable() | |
| { | |
| public void run() | |
| { | |
| Singleton.getInstance(); | |
| } | |
| }).start(); | |
| new Thread(new Runnable() | |
| { | |
| public void run() | |
| { | |
| Singleton.getInstance(); | |
| } | |
| }).start(); | |
| new Thread(new Runnable() | |
| { | |
| public void run() | |
| { | |
| Singleton.getInstance(); | |
| } | |
| }).start(); | |
| new Thread(new Runnable() | |
| { | |
| public void run() | |
| { | |
| Singleton.getInstance(); | |
| } | |
| }).start(); | |
| } | |
| } | |