forEach method is added to the arrays which are iterated but might miss it due to old jre