View Single Post
  #20 (permalink)  
Old 04-10-2008, 02:33 PM
Chris.Brown.SPE's Avatar
Chris.Brown.SPE Chris.Brown.SPE is offline
Member
 
Join Date: Apr 2008
Location: State College, PA
Posts: 50
Chris.Brown.SPE is on a distinguished road
Send a message via AIM to Chris.Brown.SPE
Your problem with using temp.split("||"); is simply that the argument is a regular expression not a string, char, or char array. You must give it the escape character which must be escaped itself. Use the following line to do it without replacing your || with something else:

temp.split("\\|\\|");
Reply With Quote