jQuery in Action, 2nd edition
The moose likes Java in General and the fly likes string concatenation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "string concatenation" Watch "string concatenation" New topic
Author

string concatenation

akhil achuthan
Ranch Hand

Joined: Mar 29, 2006
Posts: 69
if i concatenate two strings, can i later retreive the two strings separately... i.e. without manually separating them(by coding)....
for eg if i concatenate two strings A&B=AB, i need to get A and B back separately as before..... is there any function or method for that
Mandar Max
Ranch Hand

Joined: Mar 14, 2006
Posts: 38
There is no way to find out whether a string is a result of concatenation of two strings.

I am wondering why would you like to do that?


"The trouble with doing something right the first time is that nobody appreciates how difficult it was!"
Garrett Rowe
Ranch Hand

Joined: Jan 17, 2006
Posts: 1295
I don't understand what you mean, if you refer to the conatenated String by a unique reference, youi can still hold references to the original Strings.


[ April 25, 2006: Message edited by: Garrett Rowe ]

Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: string concatenation
 
Similar Threads
Inserting a character
Turn an String array all into one String?
SCJP Brainteaser (10)
What is the best way to do string concatenation?
Problem with char/string representation