I am trying to display a JLabel that holds the final points, the number of aliens found in the game and the percentage out of 30 aliens. Whenever I run my program the score/30*100 part just produces 0 instead of the actual percentage. I've tried creating a separate variable called percent with the equation and subbing it into the setText but it still doesn't work. Help?
sb.scoreLabel.setText("<html> Final Score: <html>" + (score-(incorrect)) + "<html>00<p> You got "
+ score + "/30 aliens! (<html>" + ((score/30)*100) + "<html>%) <html>" );