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



Subscribe to Tutorials

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. NICE EXPLANATION >>>THANK UUUUUU
View Tutorial          By: PraVeen at 2012-07-05 10:12:25

2. the spinner example is very nice...
View Tutorial          By: narendra at 2011-11-23 11:16:47

3. Nice article, Thank you
View Tutorial          By: kumar kasimala at 2010-04-26 21:09:25

4. Its working ,,, gud stuff.
View Tutorial          By: Atul at 2011-07-21 10:34:44

5. I am assuming you are using eclipse for your andro
View Tutorial          By: Ashley at 2011-07-18 00:34:04

6. Thank you very much..
This helped me a lot

View Tutorial          By: Rabeea AS at 2010-11-15 00:28:29

7. Thank uvery much :) u r so helpful
View Tutorial          By: Ahmed at 2011-12-04 10:01:11

8. i want to study c-programming language
View Tutorial          By: rajesh at 2008-07-27 07:43:09

9. very good tutorial..
View Tutorial          By: shobhit at 2010-05-04 12:17:41

10. It is simply good and more informative
View Tutorial          By: ARUNA at 2011-06-19 06:32:29