I have below the line
String str="select * from m_menus;
select * from m_roles";
I want the line above on the same line as
String str="select * from m_menus;select * from m_roles";
I tried
str1=str.replace("[\r\n]+", " ");
and
str1=str.replace("\n"," ");
Both do not work.
source
share