Created
February 11, 2014 14:36
-
-
Save Vox1oot/8935958 to your computer and use it in GitHub Desktop.
package com.javarush.test.level16.lesson03.task01
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.test.level16.lesson03.task01; | |
/* My first thread | |
Создать public static class TestThread - нить с помощью интерфейса Runnable. | |
TestThread должен выводить в консоль "My first thread". | |
*/ | |
public class Solution { | |
public static void main(String[] args) { | |
TestThread task = new TestThread(); | |
new Thread(task).start(); | |
} | |
public static class TestThread implements Runnable{ | |
public void run() | |
{ | |
System.out.println("My first thread"); | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment