I need help on enclosing instance.
This is the part of code i am having trouble with:
SkillUse skilluse = new SkillUse();
SkillUse.SkillTimer skilltimer = new SkillUse.SkillTimer(skilluse, skillinstance, 67, j7);
This is the error:
an enclosing instance that contains SkillUse.SkillTimer is required.
Then I searched forum and changed to this form:
SkillUse skilluse = new SkillUse();
SkillUse.SkillTimer skilltimer = skilluse.new SkillUse.SkillTimer(skilluse, skillinstance, 67, j7);
Then I still gets error saying this:
'(' expected
SkillUse^.SkillTimer(skilluse, skillinstance, 67, j7);
I am lost at this point and I am novice at java.
Can anyone tell me how I can fix this problem?
Message was edited by:
yeo123
Message was edited by:
yeo123

