Question: Java pubtic enun Direction : norTH, NORTHEAST, EXST, SOUTHEAST. South, southnEST, vtst , NORTHEEST 2 5 , 1 What are the options avaltable in Javs
Java
pubtic enun Direction :
norTH,
NORTHEAST,
EXST,
SOUTHEAST.
South,
southnEST,
vtst
NORTHEEST
What are the options avaltable in Javs that iterates through each of these enun vatues?
Pick ONL OR MORL options
Stream.ofCirectionvalueshd forEachSystemout:printInt:
forfint ; Direction.length xcdots
System,out, printinDirectienx
Oirection colisto fortakh:
for Direction dir : Directionvalues do what you want
ciear selketion
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
