...

View Full Version : what is wrong ?



Ipod
03-06-2012, 01:25 PM
http://i47.servimg.com/u/f47/16/97/49/71/java10.png (http://www.servimg.com/image_preview.php?i=16&u=16974971)

on line 6 where it says (''Game'') what is wroong with it :)

abduraooft
03-06-2012, 01:35 PM
It looks like two single quotes instead just one double quote.

Ipod
03-06-2012, 01:52 PM
http://i47.servimg.com/u/f47/16/97/49/71/java_210.png (http://www.servimg.com/image_preview.php?i=18&u=16974971)


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 ? :)

Fou-Lu
03-06-2012, 02:54 PM
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 '?

Ipod
03-06-2012, 03:03 PM
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

Fou-Lu
03-06-2012, 03:27 PM
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 '.

Ipod
03-06-2012, 03:44 PM
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 :/

Fou-Lu
03-06-2012, 03:47 PM
no the first picture is two sets of ', not ".

Ipod
03-06-2012, 03:53 PM
no the first picture is two sets of ', not ".


extreme noob question,how do i make '' and not 2 sets '

Fou-Lu
03-06-2012, 03:56 PM
Shift + ' makes ".

alykins
03-06-2012, 07:25 PM
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

teedoff
03-09-2012, 03:07 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum