I am facing the following problem. I was trying to put together a simple tutorial on the strategy in Java when I ran into a problem. The compiler gives me an \"
The method name do is a Java keyword (Section 3.9, JLS) and can't be a method name. Change your method name to something not a keyword.
do
protected static interface Strategy{ void doAction(int i); }