• Post Reply Bookmark Topic Watch Topic
  • New Topic

Order of output  RSS feed

 
Brian King
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm doing an online tutorial and part of it has the code below. I'm confused about why "Local" prints out before "Global" if Global comes first in the code.  Thanks.

 
Knute Snortum
Sheriff
Posts: 4270
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because line 10 (where addThem() is called) comes before line 11.
 
Brian King
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ohhh...nevermind.  I get it.  It's calling addThem(1,2) first.

I'm so dumb. 
 
Pete Letkeman
Ranch Foreman
Posts: 898
26
Android Chrome IntelliJ IDE Java MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would not say that Brian.

Sure you may have misread/misunderstood something but talk like that will not help anyone including you.
Nearly everyone has misread or misunderstood something at some point in time.
I know that I have and most likely I misread or misunderstand something in the future.

One other word I do not like is Easy as this is to subjective and it's definition can change from person to person.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!