Write a stream pipeline that:
-
Prints the declared methods of
java.lang.String
sorted by name. -
Prints all distinct names of the declared methods of
java.lang.String
sorted alphabetically. -
Prints the declared methods of
java.lang.String
with 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.String
sorted alphabetically. -
Prints the declared methods of
java.lang.String
with at least oneboolean
parameter, sorted by name. -
Prints the declared methods of
java.lang.String
whose 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.String
with the most number of parameters. -
Prints all distinct parameter types of the declared methods of
java.lang.String
sorted alphabetically.