Update Sarray.java

FINISHED YEY.

Each method took about 10 mins