Can i call a Hosted API Service method from another service in JAVA?

I was wondering if there was a way to call a method for example from a core hosted API service from another hosted API Service?

Ok i found the solution:

Service Calling:

public class HelloService implements IBackendlessService{
	static final String SERVICE_NAME = "CoreService";
    static final String SERVICE_VERSION_NAME = "1.0.0";

	public String getHello() {
		Object[] args = new Object[]{"Garry"};
		return Backendless.CustomService.invoke( SERVICE_NAME, SERVICE_VERSION_NAME, "getHelloWorld", args);

Service Called:

public String getHelloWorld(String str) {
		return "Hello, World! My name is " + str;