Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-06-2012, 01:25 PM   PM User | #1
Ipod
New to the CF scene

 
Join Date: Mar 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Ipod is an unknown quantity at this point
what is wrong ?

[IMG][/IMG]

on line 6 where it says (''Game'') what is wroong with it
Ipod is offline   Reply With Quote
Old 03-06-2012, 01:35 PM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
It looks like two single quotes instead just one double quote.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 03-06-2012, 01:52 PM   PM User | #3
Ipod
New to the CF scene

 
Join Date: Mar 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Ipod is an unknown quantity at this point
[IMG][/IMG]


this is what happens when i put it in one double quote. I have a hard time learning all this do you know any good tutorials ?
Ipod is offline   Reply With Quote
Old 03-06-2012, 02:54 PM   PM User | #4
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Those are single quotes, not double quotes. Java requires strings be identified by "STRING" while chars are identified by 'C'.
Are you saying that your eclipse is replacing " with '?
Fou-Lu is offline   Reply With Quote
Old 03-06-2012, 03:03 PM   PM User | #5
Ipod
New to the CF scene

 
Join Date: Mar 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Ipod is an unknown quantity at this point
Quote:
Originally Posted by Fou-Lu View Post
Those are single quotes, not double quotes. Java requires strings be identified by "STRING" while chars are identified by 'C'.
Are you saying that your eclipse is replacing " with '?
when i press ' it makes 2 so i can type inside of them
Ipod is offline   Reply With Quote
Old 03-06-2012, 03:27 PM   PM User | #6
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
No, that's not the same as a double quote. Eclipse auto-completes the ' and " by default and places the cursor between them. You need to use " when dealing with a string, not '.
Fou-Lu is offline   Reply With Quote
Old 03-06-2012, 03:44 PM   PM User | #7
Ipod
New to the CF scene

 
Join Date: Mar 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Ipod is an unknown quantity at this point
Quote:
Originally Posted by Fou-Lu View Post
No, that's not the same as a double quote. Eclipse auto-completes the ' and " by default and places the cursor between them. You need to use " when dealing with a string, not '.
im sorry i don't understand, but im pretty sure i used '' in the first picture ? sorry for being a noob :/
Ipod is offline   Reply With Quote
Old 03-06-2012, 03:47 PM   PM User | #8
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
no the first picture is two sets of ', not ".
Fou-Lu is offline   Reply With Quote
Old 03-06-2012, 03:53 PM   PM User | #9
Ipod
New to the CF scene

 
Join Date: Mar 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Ipod is an unknown quantity at this point
Quote:
Originally Posted by Fou-Lu View Post
no the first picture is two sets of ', not ".

extreme noob question,how do i make '' and not 2 sets '
Ipod is offline   Reply With Quote
Old 03-06-2012, 03:56 PM   PM User | #10
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Shift + ' makes ".
Fou-Lu is offline   Reply With Quote
Old 03-06-2012, 07:25 PM   PM User | #11
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
my suggestion until you understand syntax's and proper techniques is to write/code all your code in an outside editor that does not auto complete anything for you- ie no intellie-sense/auto-complete... Notepad++ is great for this and will help you with color coordination and not auto complete... IDE's that "help" you can really hurt you if you do not understand it at a fundamental level
*Just my two cents

Edit: Then save the file accordingly and load it into your IDE and compile/validate
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote
Old 03-09-2012, 03:07 PM   PM User | #12
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
My suggestion is to take a keyboarding, or in my day, a typing class to learn the different between a single and double quote! lol
__________________
Teed
teedoff is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:58 PM.


Advertisement
Log in to turn off these ads.