Forums Register Login

Displaying an arraylist using scriplet

+Pie Number of slices to send: Send
Hi guys

The following code to display an arraylist of Objects of type MyObj is not working:



Any help is appreciable.

Thanks
+Pie Number of slices to send: Send
 

James Winfrey wrote:
MyObj is not working



does not help us to answare, post the error stack trace . also scriptlet is a legacy style, should be avoided.

also dont assign an arraylist object to an arraylist reference type. because you would tieup with arraylist specific operatios, instead use List *interface*.
+Pie Number of slices to send: Send
Scriptlets? In new code?

It's well past time to update your code to modern standards.
He's giving us the slip! Quick! Grab this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1934 times.
Similar Threads
Using ResultSet - which is a more effecient code?
Question about Drools accessing a global HashMap and comparing it to an object value
ArrayListS in an ArrayList that consists of ArrayListS behave like they are the same instance
Question about Drools accessing a global HashMap and comparing it to an object value
Cast Object to Object[]
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:16:44.