Defining a java function to be called in RPG

pts.
Tags:
Development
RPG
I'm very new to both java and rpg and so I'm struggling to work out how to do this! I need to call one of a couple of java functions, but they both use arrays and I'm having a lot of trouble working out how to define them! The java functions I need to call are either: public static void main(String args[]) or public static String[] callFunction(String s, String s1, String as[], String s2, boolean flag) I just can't work out what java types to define the arrays as. Any help or pointers would be very much appreciated! Thanks in advance.

Answer Wiki

Thanks. We'll let you know when a new response is added.

hi,
See, the main() function is not required to be called explicitely, keep that function in a class and save the java file with the same name as the class in which main() is defined. So main() starting point in java.
Secondly in java String, Integer, Boolean Character all are classes defined. You should go through the java APIs that is java doc which is available whenever you install java on your machine. For any class in Java have a habit to refer this java doc.
I hope this will help you.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following