Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Can anyone answer this question(I'm new to java and eager to learn more and am experimenting with java word games.)
Can anyone answer this question [message #848112] Wed, 18 April 2012 00:24 Go to next message
Derek Collins is currently offline Derek CollinsFriend
Messages: 2
Registered: April 2012
Junior Member
System.out.printin("Welcome to the True Test to Become a Cave Explorer. You see an expansive staircase ahead you and rooms to your left and right.""Type 'upstairs' and hit enter to go up the staircase, 'right' to go to the room on your right," 'left' to go to the room on your left.");
Can anyone please point out any errors in this line of code. Also suggestions on how to fix them.
Eclipse already pointed out that i have
Multiple markers at this line
- Invalid character constant
- Syntax error, insert ")" to complete
MethodInvocation
- The method printin(String) is undefined
for the type PrintStream
- Syntax error, insert ";" to complete
Statement
that is the exact errors i have.

Thanks, Derek
P.S. please don't say i'm a noob and call me dumb i'm new and everyone starts somewhere.
Re: Can anyone answer this question [message #848243 is a reply to message #848112] Wed, 18 April 2012 03:45 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1441
Registered: July 2009
Senior Member
On 04/17/2012 07:24 PM, Derek Collins wrote:
> System.out.printin("Welcome to the True Test to Become a Cave Explorer.
> You see an expansive staircase ahead you and rooms to your left and
> right.""Type 'upstairs' and hit enter to go up the staircase, 'right' to
> go to the room on your right," 'left' to go to the room on your left.");
> Can anyone please point out any errors in this line of code. Also
> suggestions on how to fix them.
> Eclipse already pointed out that i have Multiple markers at this line
> - Invalid character constant
> - Syntax error, insert ")" to complete MethodInvocation
> - The method printin(String) is undefined for the type PrintStream
> - Syntax error, insert ";" to complete Statement
> that is the exact errors i have.
>
> Thanks, Derek
> P.S. please don't say i'm a noob and call me dumb i'm new and everyone
> starts somewhere.
Noob Java questions don't belong in the Eclipse forums. There are other
sources to get these types of questions answered.

Quick assist should give you a clue about the method is undefined error.

Go back to your Java text book and look at String constants and String
concatenation.
Re: Can anyone answer this question [message #848814 is a reply to message #848243] Wed, 18 April 2012 15:48 Go to previous message
Thomas D is currently offline Thomas DFriend
Messages: 2
Registered: April 2012
Junior Member
System.out.printin
System.out.println
("Welcome to the True Test to Become a Cave Explorer. .... "" ....".... to go to the room on your left.");
("Welcome to the True Test to Become a Cave Explorer. .... .... .... to go to the room on your left.");
------------
System.out.println("Welcome to the True Test to Become a Cave Explorer. You see an expansive staircase ahead you and rooms to your left and right. Type 'upstairs' and hit enter to go up the staircase, 'right' to go to the room on your right, 'left' to go to the room on your left.");
Previous Topic:New Command Bindings To The Mouse?
Next Topic:Can I change the background color for embedded code?
Goto Forum:
  


Current Time: Thu Sep 23 00:58:29 GMT 2021

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

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

Back to the top