I totally don't understand why this solution is wrong. What does the 5th requirement mean if not what I've already done? I'm out of ideas. I'd appreciate your help.
package com.codegym.task.task25.task2504;
/*
A switch for threads
*/
public class Solution {
public static void processThreads(Thread... threads) {
for (Thread t : threads){
switch (t.getState()){
case NEW:
t.start();
break;
case WAITING:
case TIMED_WAITING:
case BLOCKED:
t.interrupt();
break;
case RUNNABLE:
System.out.println(t.isInterrupted());
break;
case TERMINATED:
System.out.println(t.getPriority());
break;
}
}
}
public static void main(String[] args) {
}
}