Add a semi-complete java flow test program
Add "thread" implementation for activities