Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » I need to write this in eclipse.plz help(helping )
I need to write this in eclipse.plz help [message #894130] Fri, 06 July 2012 16:22 Go to next message
shehab mostafa is currently offline shehab mostafa
Messages: 1
Registered: July 2012
Junior Member

I need eclipse to out.print this statement as it is with quotes and slash:
" Somewhere over / the vast ocean\'there must' be a land
where my thoughts /will meet the distance shore..."
complained a ("lonely and longing") singer.

there is some errors coz of using double quotes and slash

can u help me in that


thanks
Re: I need to write this in eclipse.plz help [message #894211 is a reply to message #894130] Sat, 07 July 2012 13:11 Go to previous messageGo to next message
Frank Marabate is currently offline Frank Marabate
Messages: 3
Registered: July 2012
Junior Member
shehab mostafa wrote on Fri, 06 July 2012 16:22

I need eclipse to out.print this statement as it is with quotes and slash:
" Somewhere over / the vast ocean\'there must' be a land
where my thoughts /will meet the distance shore..."
complained a ("lonely and longing") singer.

there is some errors coz of using double quotes and slash

can u help me in that


thanks


Is this for a class assignment? Can I assume this is Java? You have to use escape sequences. So for the first ", you would need to put \" Somewhere over....

Does that help?

Frank
Re: I need to write this in eclipse.plz help [message #894438 is a reply to message #894130] Mon, 09 July 2012 05:09 Go to previous message
Rupali Patwa is currently offline Rupali Patwa
Messages: 2
Registered: May 2012
Junior Member



String msg="\" Somewhere over / the vast ocean\'there must' be a land where my thoughts /will meet the distance shore...\"complained a (\"lonely and longing\") singer";
System.out.println(msg);
Previous Topic:Text jumping about when edititng XML layout files
Next Topic:JAR missing
Goto Forum:
  


Current Time: Thu Jul 24 19:00:34 EDT 2014

Powered by FUDForum. Page generated in 0.01827 seconds