bako Posted October 31, 2007 Share Posted October 31, 2007 HIi've a bean that have a List ml = new ArrayList.so i add in my arrayList some thing, for example:ml.add("hi");ml.add("bau"); so when i try to print the arrayList into a report i use this: ""+$F{ml} but the result is [hi,bau]. I will have another thing, hi and bau separeted. so i will iterate on my arraylist like a for, it is possible? and, if i have an arrylist compose of another classex: List ml = new ArrayList();Myclass mc = newMyclass();mc.setOne(1);mc.setTwo(2);mc.setName("name");ml.add(mc);Myclass mc2 = newMyclass();mc2.setOne(100);mc2.setTwo(200);mc2.setName("bho");ml.add(mc2); how i can print the fields of my class? Link to comment Share on other sites More sharing options...
antoniyski Posted November 26, 2015 Share Posted November 26, 2015 Well I'm looking for the same thing, did you figure it out how it's done ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now