Comment on Tutorial - TreeMap example in Java By Daniel Malcolm



Comment Added by : anbalagan.s

Comment Added at : 2007-10-17 05:10:19

Comment on Tutorial : TreeMap example in Java By Daniel Malcolm
The textarea value(finalresult) i want save in TreeMap(). please relay soon
String emailids=invitation.getInviteeEmail();
String[] result = emailids.split("\n");
for (int x=0; result!=null && x<result.length; x++) {
String[] finalresult= result[x].split(",");
Invitation inv = (Invitation)invitation.clone();
inv.setInviteeEmail(finalresult[0]);
if (finalresult.length==2){
inv.setInviteeName(finalresult[1]);
}
InvitationServiceUtil.create(inv);
}


View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Great!!!!!!!!!!!!!!!!!!!!
View Tutorial          By: Raghbendra Nayak at 2012-03-28 12:54:35

2. nice article but can more example
View Tutorial          By: sandi at 2012-10-18 13:26:10

3. its a big help!..thankz
View Tutorial          By: mezer at 2013-07-17 05:34:07

4. i Want the Flow Chart and code for the mobile Cale
View Tutorial          By: Sudip Khatiwara at 2010-03-15 04:10:41

5. good
View Tutorial          By: sasikiran at 2008-03-30 23:33:24

6. super
View Tutorial          By: asasdfsa at 2014-05-29 05:23:04

7. Very well Explained Thank you Hog .
View Tutorial          By: Asad at 2010-08-10 23:59:29

8. Thanks

I was really helpful.

View Tutorial          By: saroj khatiwoda at 2015-06-02 12:17:51

9. short notes to struts,but i expect more explanatio
View Tutorial          By: jayashri at 2011-11-23 18:24:07

10. Thank you. I found this very helpful.
View Tutorial          By: tavella at 2014-09-26 01:04:13