Open topic with navigation

TIBCO GridServer® 7.1.0

# The Service Implementation

In this section, let us create a simple Service in Java. The implementation’s class is called `JavaAdder` and has one method, `add`, that takes two `double`s. The method returns a `double` that is the sum of its arguments.

    package examples.adder.service.JavaAdder;
    public class JavaAdder {
        public double add(double a, double b) {
            return a + b;
        }
    }

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO GridServer®

Copyright © 2001-2022. TIBCO Software Inc. All Rights Reserved.