It is issue with eclipse version.
Answer from user @Andreas
Helios (3.6) is from June 23, 2010, and is far from the latest, and it doesn’t support Java 8. Luna (4.4) from June 25, 2014 is the first version with integrated Java 8 support. Latest version is Mars (4.5) from June 24, 2015.
Thanks to @Andreas and all who responded to me
solved Arrays class is not identified [closed]