Datasets:
ArXiv:
License:
Stack-Repo / data /train /akash-coded /FSD_Java /Lesson-3 /Concurrency and Multithreading /Examples /SingleThreaded.java
Download data/train/akash-coded/FSD_Java/Lesson-3/Concurrency and Multithreading/Examples/SingleThreaded.java from RepoFusion/Stack-Repo: direct link, hf CLI and curl.
- Browser
- Download file 368 Bytes
-
https://huggingface.co/datasets/RepoFusion/Stack-Repo/resolve/bbc90aef76314892f2d54f85da32b81503fb7eb3/data/train/akash-coded/FSD_Java/Lesson-3/Concurrency%20and%20Multithreading/Examples/SingleThreaded.java
- Command line
-
hf download 'hf://datasets/RepoFusion/Stack-Repo@bbc90aef76314892f2d54f85da32b81503fb7eb3/data/train/akash-coded/FSD_Java/Lesson-3/Concurrency and Multithreading/Examples/SingleThreaded.java'
-
curl -L -o SingleThreaded.java https://huggingface.co/datasets/RepoFusion/Stack-Repo/resolve/bbc90aef76314892f2d54f85da32b81503fb7eb3/data/train/akash-coded/FSD_Java/Lesson-3/Concurrency%20and%20Multithreading/Examples/SingleThreaded.java
368 Bytes
| public class SingleThreaded { | |
| private static String threadName = "Main"; | |
| public static void main(String[] args) { | |
| System.out.println("Running " + threadName); | |
| for (int i = 4; i > 0; i--) { | |
| System.out.println("Thread: " + threadName + ", " + i); | |
| } | |
| System.out.println("Thread " + threadName + " exiting."); | |
| } | |
| } | |