/** Demonstrates getArity api function. */ protected void demo6() throws IOException, UnknownHostException, CycApiException { Log.current.println("Demonstrating getArity api function.\n"); int arity = cycAccess.getArity(cycAccess.getKnownConstantByName("likesAsFriend")); Log.current.println("\nThe obtained arity is " + arity); }