Day 4 - Print in Order - Leetcode Problem Solved
The Task
Suppose we have a class:
public class Foo {
public void first() { print("first"); }
public void second() { print("second"); }
public void third() { print("third"); }
}
The same instance of Foo will be passed to three different threads...
sodiqsanusi.hashnode.dev2 min read