• Post Reply Bookmark Topic Watch Topic
  • New Topic

Order of output  RSS feed

 
Ranch Hand
Posts: 38
  • 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.

 
Sheriff
Posts: 4736
131
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: 38
  • 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. 
 
Rancher
Posts: 1298
36
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!