the method can only set one of public / protected / private
<p>I'm implementing an interface:</p>

<pre><code>public interface Consultant {
    // some documentation here explaining it should throw 3 types of exceptions
    CellLocation suggest(GameBoard gameBoard);
}
</code></pre>

<p>It uses another interface:</p>

<pre><code>public interface GameBoard {
    CellState getCellState(CellLocation cellLocation);
}
</code></pre>

<p>I wrote a lot of methods, but just started implementing the all-important suggest method. It looks like this so far:</p>

<pre><code>public class YourConsultant implements Consultant {
    @Override
    public CellLocation suggest(GameBoard gameBoard) {
        char[][] arrayBoardGlobal;
        Player currentPlayerGlobal;
        GameState gameStateGlobal;
        return null;
    }
}
</code></pre>

<p>But I get the error</p>

<blockquote>
  <p>The method suggest in type YourConsultant can only set one of public / protected / private</p>
</blockquote>

<p>Of course I cannot change it from public to anything else because of the interface.</p>

<p>What could be the cause? I haven't found the answer here or the net, probably because it brings up basic info about access modifiers. I'm using Eclipse Neon.</p>