Java:how to convert list of Songs into stream of Strings : I have a list of songs, which is a class with 3 values: songName, albumName, duration and hash.
I have write a function which return a Stream<String> of all the songs ordered by name.
My first idea was this:

       public Stream<String> orderedSongNames() {
      return songs.stream().sorted((s1,s2)>s1.getSongName().compareTo(s2.getSongName()));
    }
The problem is that in this way, the return value is a Stream<Song>.