[SPARK-3325] Add a parameter to the method print in class DStream.

def print(num: Int = 10)
User can control the number of elements which to print.

Adding this optional parameter means that `print()` no longer exists in Java. You've removed it from the public API. I'm pretty sure you will need two methods, rather than a default Scala parameter.