Java | Simple | Easy to understand
```\nclass Solution {\n    public int numberOfRounds(String loginTime, String logoutTime) {\n        String[] arr1 = loginTime.split(":");\n        String[] arr
```\nclass Solution {\n    public int numberOfRounds(String loginTime, String logoutTime) {\n        String[] arr1 = loginTime.split(":");\n        String[] arr2 = logoutTime.split(":");  \n        \n        int time1 = Integer.parseInt(arr1[0])*60 + Integer.parseInt(arr1[1]);\n        int time2 = Integer.parseInt(arr2[0])*60 + Integer.parseInt(arr2[1]);\n\n        if(time1 > time2) time2 = time2 + 24*60;\n        if(time1%15 != 0) time1 = time1 + 15-time1%15;\n        \n        return (time2 - time1)/15;\n    }\n}
['Java']