I pass the task ! But why? I enter the example and the the result is different. How is it correct?They are not sequentially. input: a b c d e f result : a d f b c e public class Solution { public static volatile BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws InterruptedException { Read3Strings t1 = new Read3Strings(); Read3Strings t2 = new Read3Strings(); //write your code here t1.start(); t2.start(); t1.join(); t2.join(); t1.printResult(); t2.printResult(); } //write your code here public static class Read3Strings extends Thread { ArrayList<String> arr = new ArrayList<>(); public void run() { try { for (int i = 0; i < 3; i++) { arr.add(reader.readLine()); } } catch (IOException e) { System.out.println("Interrupted"); } } public void printResult() { for (int i = 0; i < arr.size(); i++) { System.out.print(arr.get(i) + " "); } } } }