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. good example tnq...........
View Tutorial          By: SaidiReddy at 2012-06-09 12:03:09

2. it provides manna in the studies of java to me
View Tutorial          By: aravinden at 2011-12-27 08:18:18

3. where i put this rar file to include comm api
View Tutorial          By: shubham bansal at 2015-02-20 12:13:16

4. input can be taken simly with Console class

View Tutorial          By: Dinesh at 2012-06-29 11:18:23

5. Sir , I am doing B.Tech . I want to know more abou
View Tutorial          By: Rakesh yadav at 2011-01-18 22:23:22

6. just looking for it, useful!
View Tutorial          By: ymfeng at 2009-03-20 00:09:56

7. Thanks...it was very helpful :)
View Tutorial          By: Swathi at 2012-01-25 06:49:46

8. I tried to use the code's but getting one error as
View Tutorial          By: Ashish at 2009-03-23 03:10:22

9. good but not best
View Tutorial          By: VIVEK at 2010-03-09 03:00:21

10. I am new to J2ME but this was really help full and
View Tutorial          By: Subhash at 2013-05-05 08:57:38