• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

asking help

 
Travis nabarrette
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, literally just starting to learn java, when i run the code below no compile errors, however when i input the name travis it does not register for some reason

 
Charles D. Ward
Ranch Hand
Posts: 99
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Travis,

Take a look at your IF statement. Are you using the right variable?
Also (I'm also a newbie) I believe If and else statements should always have {}.

 
Travis nabarrette
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DOH yeah thanks i appreciate your help, cant help but to feel a little embarassed
 
Steve Fahlbusch
Bartender
Posts: 605
7
Mac OS X Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
first - don't feel embraced.

You had a question, you asked, you got an answer. Life is good.

It is quite important to realize that asking questions is good.

thanking for the answer is very good -- there are so many good folks here it is amazing.

thank you for thanking your help.
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Travis nabarrette wrote:DOH .. cant help but to feel a little embarassed

You should have seen some of the questions I came up with when I started off
Nothing embarrassing in asking questions. It is always fun to revisit your questions some months down the line. If you think Oh wow, did I really not know this or did I really think this way, its a very good indicator that you are learning.
 
Charles D. Ward
Ranch Hand
Posts: 99
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:
Travis nabarrette wrote:DOH .. cant help but to feel a little embarassed

You should have seen some of the questions I came up with when I started off
Nothing embarrassing in asking questions. It is always fun to revisit your questions some months down the line. If you think Oh wow, did I really not know this or did I really think this way, its a very good indicator that you are learning.


So true!
 
fred rosenberger
lowercase baba
Bartender
Posts: 12123
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when posting actual code, please use the code-tags. It will preserve your formatting and color code it, making it all much easier to read. You can read about them here.

 
Tony Docherty
Bartender
Posts: 2957
59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Charles D. Ward wrote:Also (I'm also a newbie) I believe If and else statements should always have {}.

It is certainly good practice to use curly braces (and I would recommend using them) but they are not compulsory if the following clause only contains one statement.
 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steve Fahlbusch wrote:first - don't feel embraced.

I thought we embraced everybody here - even those who are embarassed
 
Campbell Ritchie
Sheriff
Pie
Posts: 48938
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Careful; we don't want to be blocked by Net‑Nanny sites
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic