how to convert string array[] in to single string..is der any func?
explain with a code plz?
thanks in advance
how to convert string array[] in to single string..is der any func?
explain with a code plz?
thanks in advance
All the methods for strings are in the String and StringBuffer classes. They are listed and explained in the documentation.
No, there is no specific method for this. You must write a loop to concatenate them. I suggest you use a StringBuffer, and append each String in turn.
actually i want to extract a sub string(name) from string buffer....wat function to use... have to finish dis work today..pl help
All the information you want is in the JavaDocs. Reading the documentation would be good plan. There isn't that much to read.
You convert a StringBuffer to a String by using toString().
You extract a substring by (guess what) myString.substring(begin, end).
You will find these answers much faster by looking in the documentation.
substring(1,6);
if in the second time,name changes to long sequence(15 characters)
Perhaps you could give us some examples of strings...
But I'm guessing you want to use String.indexOf()
Seriously, read the JavaDocs for the String class, you will find what you need.