I am having an xml
<field>
<fieldSeparator>\t</fieldSparator>
<fieldOrder>field1,field2,field3</fieldOrder>
</field>
corresponsing FieldVO has the respective values in it.
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("someValue").append(fieldSeparator).append("SomeOtherText");
Output - someValue\tSomeOtherText
Here i want to render the tab space instead of "\t"
.
But
String str = "text1,text2,text3";
String str1="\t";
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append(str.replaceAll(",",str1));
System.out.println(stringBuffer);
Output --> text1 text2 text
3.
Can anybody explain those 2 behaviours?
Thanks.