For this Question: Newton wants to play Holi with his friends. So he wants to buy three colors for which he needs some money from his father. For buying all three colors he needs at least 75 rupees. For buying 2 colors he needs at least 50 rupees. For buying at least 1 color he needs 25 rupees.
You have to check how many colors did Newton buy. If he buys all three colors print "Newton is very happy", if he buys only two colors print "Newton is happy", if he buys only one color print "Newton is sad" otherwise print "Newton won't play Holi".The first line contains the integer n denoting the amount of money Newton receives from his father.

<b>Constraints</b>
0 &le; n &le; 1000Print the output based on the suitable condition.Sample input:
60

Sample output:
Newton is happy

<b>Explanation</b>
Newton will get only two colors as he gets only 60 ruppes from his father., I have written this Solution Code: import java.util.Scanner;
class Solution {
    public void num(int money){
if (money < 25) {
         System.out.println("Newton won't play Holi");
      }
else if (money < 50) {
         System.out.println("Newton is sad");
     }
else if (money < 75) {
         System.out.println("Newton is happy");
     }
      else {
         System.out.println("Newton is very happy");
      }
    }
}
public class Main {
     public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int money= scanner.nextInt();
        Solution obj = new Solution();
        obj.num(money);
    }
}
, In this Programming Language: Java, Now tell me if this Code is compilable or not?