47 METHODS IN JAVA
package com.cnc;
public class Main {
public static void main(String[] args) {
calculateScore(true, 800,5,100);
calculateScore(true,600,10,200);
}
public static void calculateScore(boolean gameOver,int score, int levelCompleted, int bonus){
if(gameOver){
int finalScore = score +(levelCompleted*bonus);
finalScore += 1000;
System.out.println("your final score is "+finalScore);
}
}
}