Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> A very small mistake you are doing is declaring variable b as a parameter of method f as well as an object of class B. So just change one of the variable name and you are fine. > public void f(String s, boolean b){ > Change To > Hi, sorry, but as i said in the headline, this is a typo in my posting, not in my original code. As you could have guessed because as i said, my code works if i declare B public, and because of the compiler-error i get if B is declared protected. Thanks,
Replies:
|
Sponsored Links
|