But brother the problem is that there can be more or less than 3 names in that field.So can I use- "First Name- " + "Md,Tanvir,".split(",")[0] + " Second Name- " + "nMd,Tanvir".split(",")[1] + "nLastName- " + "Md,Tanvir".split(",")[2] The output I want is that- First Name-Md Second Name-Tanvir last Name- In the last name there will be nothing.But I just want to display all the names but the names can be more than 3 or less.In this case,what can I do? With StringTokenizer i can just show the first token in the field with the following code- ""+new java.util.StringTokenizer(NameString,",").nextToken() How can I show the rest.Actually the name field has 6 part.The number of token is not known from before.Whatever the NameString is , I want to show all the tokens that is in dat string.If there is no token,it will show nothing, like- First Name-Md Second Name-Tanvir last Name- Surname- if there is last name and surname it will show them. Post edited by: mhbashar1, at: 2008/01/06 08:25 Post edited by: mhbashar1, at: 2008/01/06 08:50