Return Object does not return the expected output
Hi all..
I am writing a class (as a plugin) where the output is an object of 2 strings and one integer. When running the plugin it is expected to show the following: "Hello 2 Worlds"
However, I just got Hello and the rest are simply skipped!!
Here is my code
public static Object[] helloWorlds(PluginContext context) {
return new Object[] { "Hello", new Integer(2), "Worlds" };
}
Would you please help me :confused:
Regards,
Re: Return Object does not return the expected output
I'm moving this to a more appropriate forum. The Member Introductions forum is for saying hi, not for asking technical questions.
But if you do want help, you're going to have to post an SSCCE. Mainly, how are you calling this function and what are you doing with the result?