Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
Sell your Land, House on idamata.lk for FREE
sajith.xp.pk
Updated:
Today at 9:03 AM
Handmade Character Soft Toys
anil1961
Updated:
Tuesday at 2:11 PM
Bodim.lk out now !
Manoj Suranga Bandara
Updated:
Sunday at 3:05 AM
Power Lifting Lever Belt
SkullVamp
Updated:
Jun 13, 2026
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Jun 13, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
ElaKiri Programmer's Club
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="DooA" data-source="post: 18156348" data-attributes="member: 362085"><p>[PHP]</p><p> //this is base list this will print last</p><p> ArrayList<String> colorList = new ArrayList<>();</p><p> colorList.add("Black");</p><p> colorList.add("Red");</p><p> MyList colors = new Last(colorList);</p><p></p><p>//first add you list</p><p> ArrayList<String> valueList = new ArrayList<>();</p><p> valueList.add("45");</p><p> valueList.add("10");</p><p> valueList.add("100");</p><p> valueList.add("48");</p><p> valueList.add("25");</p><p> MyList afterValues = new Names(colors, valueList);</p><p> </p><p>//second list</p><p> ArrayList<String> anything = new ArrayList<>();</p><p> anything.add("as");</p><p> anything.add("zx");</p><p> anything.add("df");</p><p> anything.add("we");</p><p> anything.add("sd");</p><p> MyList any = new Names(afterValues, anything);</p><p></p><p> </p><p> </p><p> //this first item this will print in first</p><p> ArrayList<String> Names = new ArrayList<>();</p><p> Names.add("GTRZ");</p><p> Names.add("DooA");</p><p> Names.add("markhaloce");</p><p> Names.add("MihiCherub");</p><p></p><p> for (String Name : Names) {</p><p> any.print(Name);</p><p> System.out.println("");</p><p> }</p><p>[/PHP]<span style="font-size: 15px">ඔව්. උබ ගානට arrays ටිකයි class ටිකයි හදාගන්න ඕනේ </span></p></blockquote><p></p>
[QUOTE="DooA, post: 18156348, member: 362085"] [PHP] //this is base list this will print last ArrayList<String> colorList = new ArrayList<>(); colorList.add("Black"); colorList.add("Red"); MyList colors = new Last(colorList); //first add you list ArrayList<String> valueList = new ArrayList<>(); valueList.add("45"); valueList.add("10"); valueList.add("100"); valueList.add("48"); valueList.add("25"); MyList afterValues = new Names(colors, valueList); //second list ArrayList<String> anything = new ArrayList<>(); anything.add("as"); anything.add("zx"); anything.add("df"); anything.add("we"); anything.add("sd"); MyList any = new Names(afterValues, anything); //this first item this will print in first ArrayList<String> Names = new ArrayList<>(); Names.add("GTRZ"); Names.add("DooA"); Names.add("markhaloce"); Names.add("MihiCherub"); for (String Name : Names) { any.print(Name); System.out.println(""); } [/PHP][SIZE=4]ඔව්. උබ ගානට arrays ටිකයි class ටිකයි හදාගන්න ඕනේ [/SIZE] [/QUOTE]
Insert quotes…
Verification
Dawasata paya keeyak thibeda?
Post reply
Top
Bottom