.append(calculatorService.subtract(3D, 2D)).toString());
System.out.println("\nInvoking over RMI Reference... ");
System.out.println((new StringBuilder()).append("3 * 2 = ")
.append(calculatorService.multiply(3D, 2D)).toString());
System.out.println("\nInvoking WebService Implementation ... ");
System.out.println((new StringBuilder()).append("3 / 2 = ").append(calculatorService.divide(3D, 2D))
.toString());
System.out.println("\nInvoking Scientific Calculator Composite Implementation ... ");
SciCalculatorService sciCalculator =
(SciCalculatorService)context.locateService(SciCalculatorService.class, "sciCalculatorService");
double values[] = {1.0D, 2D, 3D, 4D, 5D, 6D, 7D, 8D, 9D};