Skip to content

Instantly share code, notes, and snippets.

@Vox1oot
Created February 11, 2014 14:36
Show Gist options
  • Save Vox1oot/8935958 to your computer and use it in GitHub Desktop.
Save Vox1oot/8935958 to your computer and use it in GitHub Desktop.
package com.javarush.test.level16.lesson03.task01
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