I don't know why the requirements are not met
package com.codegym.task.task25.task2504;
/*
A switch for threads
*/
public class Solution {
public static void processThreads(Thread... threads) {
for(Thread thread : threads ){
switch(thread.getState()){
case NEW : thread.start();
break;
case RUNNABLE : System.out.println(thread.isInterrupted());
break;
case WAITING : thread.interrupt() ;
System.out.println(thread.getPriority());
break;
case TIMED_WAITING : thread.interrupt() ;
System.out.println(thread.getPriority());
break;
case BLOCKED : thread.interrupt() ;
System.out.println(thread.getPriority());
break;
case TERMINATED :System.out.println(thread.getPriority());
}
}
// Implement this method
}
public static void main(String[] args) {
}
}