on 08-27-2007 6:32 AM
Hi All,
I need to break up a long string value into smaller string values.
Suppose I have a long string variable, say aaa, having 500 characters. Lets suppose I have another normal string attribute, say bbb, under node ZZZ.
I want the long string aaa to be broken up into 5 instances of bbb each having 100 characters.
Please help me out in this regard.
Sayan Ghosh
Hi Ashwani,
Thanks for the link.. It was helpful.. But I have another problem here.. I cannot check the length of the long string. This is because the function of length() is only applicable to string variables but not with long string variables. And I firest need to know the total length of the long string value before breaking it up into smaller strings. Also the function of Substring is available for string and not for long.
Please provide a solution to this.
Regards,
Sayan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use this: split method in Strings.
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#split(java.lang.String)
Regards,
Ashwani Kr Sharma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.