Page 1 of 1

[HD Pg 0, Sec. 10.5.3 - accessing-static-members-from-the-same-class]

Posted: Tue Dec 10, 2019 6:21 pm
by agatha
cannot do System.out.println(Foo.printCount()+...) as Foo.printCount() return null

Re: [HD Pg 0, Sec. 10.5.3 - accessing-static-members-from-the-same-class]

Posted: Wed Dec 11, 2019 12:08 am
by admin
Please post complete code that you are trying to compile and run.
I don't see Foo.printCount anywhere in the book.