Given a list of integers, find out all the numbers starting with 1 using Stream functions?
Вставка
- Опубліковано 7 жов 2022
- Given a list of integers, find out all the numbers starting with 1 using Stream functions?
java 8 stream interview programming questions and ans in hindi
java 8 stream interview programming questions in hindi
java 8 coding questions for experienced
java 8 coding interview questions for 5 years experience
#java8 #java #javainterviewquestions #java8stream #unusualtechie #hindi
Because Startwith() takes string parameters and map() is used to process every element from the stream. Here it takes each int value and converts it to string and then its passed to startswith()
in one word thanks
Why map used here?