Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using the "/n" syntax, help

Status
Not open for further replies.

papaboy2

MIS
Jan 28, 2003
52
PH
hi, i'm a novice in java and my problem is i want my output string formatted like the one below, but my output using the /n is, it shows the /n string and the string is continous. i want the "reasons:" text to be in the next line. here's my code:

sOrderStatus = "Sorry, your order cannot be processed beause of the following /n";
sOrderStatus = sOrderStatus + "Reasons:";

thank you very much
 
should be "\n", not "/n"

--Chessbot

"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top