Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.javarush.test.level16.lesson10.task03;
- /* Снова interrupt
- Создай нить TestThread.
- В методе main создай экземпляр нити, запусти, а потом прерви ее используя метод interrupt().
- */
- public class Solution {
- public static void main(String[] args) throws InterruptedException {
- //Add your code here - добавь код тут
- TestThread testThread = new TestThread();
- testThread.start();
- testThread.interrupt();
- }
- //Add your code below - добавь код ниже
- public static class TestThread extends Thread {
- public void run() {}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement