VOOZH about

URL: https://www.geeksforgeeks.org/scala/program-to-convert-java-list-of-bytes-to-stream-in-scala/

⇱ Program to convert Java list of bytes to Stream in Scala - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Program to convert Java list of bytes to Stream in Scala

Last Updated : 14 Jan, 2020
A java list of bytes can be converted to Stream in Scala by utilizing toStream method of Java in Scala. Here, we need to import Scala’s JavaConversions object in order to make this conversions work else an error will occur. Now, lets see some examples and then discuss how it works in details. Example:1#
Output:
Stream(12, ?)
Example:2#
Output:
Stream(-89, ?)
Comment
Article Tags:

Explore