lambda - Iterate an Enumeration in Java 8 -


Is it possible to iterate enumeration by using long expression? What would be the lengthy representation of the following code snippet:

  computation & lt; Network Interface & gt; Net = NetworkInterface.getNetworkInterfaces (); While (NetsHouseAirAllements ()) {Network Interface Network Interface = NetsxAllement (); }   

I did not find any stream within it.

(This reflects one of the answer options only because it was accepted by the OP It did not mean that it is the best one. I read the other answers and depending on the situation in which you are in. There is no other repetition of simplicity - which is in my solution) < / P>

You can copy the elements of your calculations with ArrayList with Collections.list and its Prahlad use it

  Collection. List (your encryption). ForEach (yourAction);    

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -