Update SharedArrayTest.java

// Please see slide 43-51 of W15 part-2.. Especially line 9 of slide 50.