private void testStreamsFromValues(){
  Stream<String> movieNames=Stream.of("Gods Must Be Crazy","Fiddler On The Roof","Ben-Hur");
  movieNames.forEach(null);
  String[] movieNames2={"Gods Must Be Crazy","Fiddler On The Roof"};
  Stream<String> mNames2=Stream.of(movieNames2);
  mNames2.forEach(null);
  List<String> moviesList=new ArrayList<>();
  moviesList.add("The Sound of Music");
  moviesList.add("Gone with the Wind");
  Stream<List<String>> fromList=Stream.of(moviesList);
  fromList.forEach(null);
}

private void testStreamsFromValues ( ) { Stream < String > movieNames = Stream . of ( "Gods Must Be Crazy" , "Fiddler On The Roof" , "Ben-Hur" ) ; movieNames . forEach ( null ) ; String [ ] movieNames2 = { "Gods Must Be Crazy" , "Fiddler On The Roof" } ; Stream < String > mNames2 = Stream . of ( movieNames2 ) ; mNames2 . forEach ( null ) ; List < String > moviesList = new ArrayList < > ( ) ; moviesList . add ( "The Sound of Music" ) ; moviesList . add ( "Gone with the Wind" ) ; Stream < List < String > > fromList = Stream . of ( moviesList ) ; fromList . forEach ( null ) ; }
creating a stream from a set of seed values
