Java Array Get First Element Or Null