Suppose i have a Text type data, say, "abcd mnop xyz" and i want to extract everything except "mnop" how can i do that.What i tried is
Text completeText = new Text("abcd mnop xyz"); Text deleteText = new Text("mnop"); int indexDelete = completeText.getValue().indexOf(deleteText.getValue()); int lengthOfdeleteText = deleteText.getValue().length(); int lengthOfcompleteText = completeText.getValue().length(); char firstend[]= new char[indexDelete-0]; char lastend[] = new char[lengthOfcompleteText-(indexDelete+lengthOfdeleteText)]; completeText.getValue().getChars( (indexDelete+lengthOfdeleteText), lengthOfcompleteText, lastend, 0 ); completeText.getValue().getChars(0, indexDelete, firstend, 0); Text firstendText = new Text(firstend.toString()); Text lastendText = new Text(lastend.toString()); Text remainingText = new Text(firstendText.getValue()+lastendText.getValue()); but what i am getting is "[c@2fas". I tried this logic with simple String type of data and its working fine but not with Text.The char array's size is also correct its just that the characters are not getting stored properly. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.