[java] Get only part of an Array in Java?