Search code examples
javasymbols

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


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;
}
}

Solution

  • You have typo in your code:

    Strenght should be changed to strength.