Skip to main content


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 20:22 Go to next message
shehab mostafa is currently offline shehab mostafaFriend
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 17:11 Go to previous messageGo to next message
Frank Marabate is currently offline Frank MarabateFriend
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 09:09 Go to previous message
Rupali Patwa is currently offline Rupali PatwaFriend
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 Apr 18 22:56:17 GMT 2024

Powered by FUDForum. Page generated in 0.03466 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top