Today again back to the HFJ, the last exit when the problem solved, is actually a very small problem, recorded as follows:
In the CHAPTER6, the last chapter of the dotcom game to improve, the source of the book in the input,
For (DotCom dotcomtoset:d otcomslist) {
Arraylist<string> newlocation=helper.placedotcom (3);
Arraylist<string> newlocation =helper.placedotcom (3);
Dotcomtoset.setlocationcells (NewLocation);
}
Hint Dotcombust.java Error: The method placedotcom (int) is undefined for the type Gamehelper, that is, Gamehelper class methods Placedotcom () Not defined.
Check a lap, and later found that the mouse stopped on the helper has a prompt box
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/8B/01/wKioL1hBTu2TMJD0AAAt0dDEt80910.png-wh_500x0-wm_3 -wmp_4-s_783523186.png "title=" _20161202183659.png "alt=" Wkiol1hbtu2tmjd0aaat0ddet80910.png-wh_50 "/>
The code for each of my chapters is in a different chaper package, but all under HFJ project, this help identifies the gamehelper in the CHAPTER5 with the same name.
You can change the class name to resolve it.
Placedotcom () Error resolution in Head first Java