Bookmark Topic Watch Topic
  • New Topic

Method behaving differently

 
mvPrasad Regula
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Report post to moderator
Why is the following code returning zero? If I call giveMeJ() directly in System.out.println, I am getting 10.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64961
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Having ignored multiple warnings regarding your display name, your account has been closed.
 
    Bookmark Topic Watch Topic
  • New Topic