public class Solution {
//write your code here
public static convertToSeconds(int hour) {
int s = hour * 3600;
return s;
}
public static void main(String[] args) {
//write your code here
System.out.println(convertToSeconds(1));
System.out.println(convertToSeconds(4));
}
}
Where i make a mistake?
Under discussion
Comments (5)
- Popular
- New
- Old
You must be signed in to leave a comment
KARAN BHOITE
22 May 2019, 22:28
your return type u did not mention it should be (public static int convertToSeconds)
u did not mention INT.
0
JIng
9 March 2019, 12:51
public static int convertToSeconds(int hour) {
+5
JIng
9 March 2019, 12:46
return (s); not return s;
0
Sushant
9 March 2019, 11:33
try this
int seconds = hour /1 * 60 *60;
return seconds;
+1
Андрей Григорьев
7 March 2019, 08:47
convertToSeconds must have return type.
0