}
public static void packageOverviewExample4() {
try {
Method method = String.class.getMethod("length", null);
Multicast multicast = (Multicast)Multicasting.object(new Object[]{"ProxyToys", "is", "great"});
System.out.println("Total number of characters: " + multicast.multicastTargets(method, null));
String[] strings = (String[])multicast.getTargetsInArray(String.class);
for (int i = 0; i < strings.length; i++) {
System.out.println("String[" + i + "]: " + strings[i]);
}
} catch (NoSuchMethodException e) {
// String.class has a length method