/* 时间转换 */ public class Solution { //write your code here public static void main(String[] args) { //write your code here System.out.println(convertToSeconds(2)); System.out.println(convertToSeconds(4)); } public static int convertToSeconds(int hour){ return hour*3600; } }