Consider the following program.
import java.util."
public class Set To Stream
public static void main(String[] args) {
Set<String> vowelsSet = new Hash Set o0:
// add example
vowelsSet add("n");
vowelsSet add('p"):
vowels Set.add("t");
vowelsSet add("e");
vowelsSet add("1");
//convert set to stream
vowelsSet stream( forEach(System.out.println);
What is the output of the above program?
a. n
р
t
1
b. n
P.
t
1
Answers
Answered by
0
Answer:
a is the answer I guess.....
Similar questions