Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Solution
- {
- public static int convertToSeconds(int hour) {
- return (hour * 60) * 60;
- }
- public static void main(String[] args) {
- System.out.println(convertToSeconds(5));
- System.out.println(convertToSeconds(8));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement