Did a quick test. Inserted the chars \n in a resouce boundle file, read it and printed it. The \n caused a line break.
Can you post the code, the name of the properties file and its contents?
import java.util.*;
public class ResourceBundleTest {
public static String mymethod(String ss) {
ResourceBundle resources = ResourceBundle.getBundle(ss);
String s = resources.getString("USER");
return s;
}
public static void main(String[] args) {
String st = mymethod("DBase");
System.out.println(st);
}
}
/*
Following is contents of DBase.properties
key=value
USER=DBase only\nadfg
Following is output from program:
DBase only
adfg
*/