[JAVA] Easy, Clean and Detailed Solution
\nclass Solution {\n    public int numberOfRounds(String startTime, String finishTime) {\n        String[] t1 = startTime.split(":");\n        int h1 = Integer.
```\nclass Solution {\n    public int numberOfRounds(String startTime, String finishTime) {\n        String[] t1 = startTime.split(":");\n        int h1 = Integer.parseInt(t1[0]);\n        int m1 = Integer.parseInt(t1[1]);\n        \n        t1 = finishTime.split(":");\n        int h2 = Integer.parseInt(t1[0]);\n        int m2 = Integer.parseInt(t1[1]);\n        \n        if(h1 == h2 && m2 - m1 < 15 && m2 - m1 >= 0)\n            return 0;\n        if(m1 > 0 && m1 <= 14)\n        \tm1 = 15;\n        else if(m1 > 15 && m1 < 30)\n        \tm1 = 30;\n        else if(m1 > 30 && m1 < 45)\n        \tm1 = 45;\n        else if(m1 > 45 && m1 <= 59) {\n        \tm1 = 0;\n        \th1++;\n        }\n        \n        if(m2 > 0 && m2 <= 14)\n        \tm2 = 0;\n        else if(m2 > 15 && m2 < 30)\n        \tm2 = 15;\n        else if(m2 > 30 && m2 < 45)\n        \tm2 = 30;\n        else if(m2 > 45 && m2 <= 59) {\n        \tm2 = 45;\n        }\n        \n        int x = h1 * 60 + m1;\n        int y = h2 * 60 + m2;\n        \n        if(y >= x)\n        \treturn (y - x) / 15;\n        else\n        \treturn (((24 * 60) - x) + y) / 15;\n    }\n}\n```
['Java']