Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public class Solution
  2. {
  3.  
  4. public static int convertToSeconds(int hour) {
  5. return (hour * 60) * 60;
  6. }
  7.  
  8. public static void main(String[] args) {
  9. System.out.println(convertToSeconds(5));
  10. System.out.println(convertToSeconds(8));
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement