Replies: 6 comments 2 replies
-
Hmmm. That code looks right. A similar example might be this link which uses Array List: https://forums.mirthproject.io/forum/mirth-connect/support/175691-multiple-row-request-jdbc-to-one-pdf?p=175723#post175723 In your case Do you get any errors? What output do you get? Per the javadoc - https://docs.oracle.com/javase/8/docs/api/java/util/Arrays.html#equals-java.lang.Object:A-java.lang.Object:A-
Order matters. Are you expecting an order-sensitive comparison? |
Beta Was this translation helpful? Give feedback.
-
I'm really just trying to see if I can use the Arrays class methods in my channel. So, just expecting it to return a true or false I guess. I get this error when it runs:
|
Beta Was this translation helpful? Give feedback.
-
How would I declare my array variables to be a Java array type? |
Beta Was this translation helpful? Give feedback.
-
Yeah, I was just trying to understand how to use some of the Java classes in Mirth. |
Beta Was this translation helpful? Give feedback.
-
You picked a bad example to just try out some java classes. Javascript arrays are not Java arrays. It needs to figure out how to convert them. I probably wouldn't bother with If you really want to call the function anyway, you can do it like this: java.util.Arrays['equals(java.lang.Object[],java.lang.Object[])'](arr1, arr2) There is also no need to use |
Beta Was this translation helpful? Give feedback.
-
I wasn't primarily interested in the equals function, just picked it out of the blue to try using the class. Sounds like The Arrays class is best left alone unless there is a distinct need. Thanks for the info. |
Beta Was this translation helpful? Give feedback.
-
What is the proper way to use the Arrays class in Mirth?
I tried importing using this: importPackage(java.util.Arrays); but that gives an error
I tried just calling it with below code:
I'm sure this should be simple but I'm not getting it to work.
Beta Was this translation helpful? Give feedback.
All reactions