Skip to content
Advertisement

This can´t be executed since there is a symbol not found [closed]

I´m having trouble with this since it cannot find a Symbol. I would be happy if someone knows what is wrong.

public class MartialArtist{  
public static void main(String[] args){
double HP=100;
int Strength=10;
double dmg=0;    
}
public static double Firepunch(int Strength,double dmg){
dmg=Strenght*1.5;    
return dmg;
}
public static double Firekick(int Strength,double dmg){
dmg=Strength*1.8;

return dmg;
}
public static double Tackle(int Strength,double dmg){
dmg=Strength*1.6;

return dmg;
}
}

Advertisement

Answer

You have typo in your code:

Strenght should be changed to strength.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement