I want a list of BioServices that are associated with each KindOfInput (such
as "gene", "DNAFragment", "genome", etc.). What
is available from my service provider is a list of strings, each
containing the name of a service followed by all the KindsOfInput it requires.
Given a String[] services, return a String[] in which each element contains a
KindOfInput followed by the names of all the services that use that kind of
input.
Each KindOfInput should appear exactly once in the return. Within
each element of the return, the service names should be in alphabetical order,
and should be separated by the 2 characters ", " (comma space). The KindOfInput should be
separated from the first service name by the 5 characters " ==> " (space eq eq gt space). The returned
list should be in alphabetical order.
Note that all names are case-sensitive, and that "alphabetical order" refers to
the ASCII ordering, where, for example, 'Z' precedes 'a'.
|