Write a stream pipeline that:
-
Prints the declared methods of
java.lang.Stringsorted by name. -
Prints all distinct names of the declared methods of
java.lang.Stringsorted alphabetically. -
Prints the declared methods of
java.lang.Stringwith two or more parameters whose parameters are all of the same type, sorted by name. -
Prints all distinct return types of the declared methods of
java.lang.Stringsorted alphabetically. -
Prints the declared methods of
java.lang.Stringwith at least onebooleanparameter, sorted by name. -
Prints the declared methods of
java.lang.Stringwhose parameters are all of typeint, sorted by name. -
Returns the longest one from the names of the public methods of
java.lang.String. -
Returns summary statistics about the number of parameters for the declared methods of
java.lang.String. -
Returns the maximum number of parameters accepted by the declared methods of
java.lang.String. -
Returns the declared method of
java.lang.Stringwith the most number of parameters. -
Prints all distinct parameter types of the declared methods of
java.lang.Stringsorted alphabetically.