0
How to solve the time converter project in Java ?
Please indicate me what's wrong in the code. It's continuously showing me the error is ": expected". public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int days = scanner.nextInt(); //your code goes here int days = X; int seconds = int.class "X*24*60*60"; System.out.println(seconds); } }
3 ответов
+ 3
what is int.class "x*24...."
+ 1
Rabi Shankar Panda
And what is 'X' and why it assigned to days if days is your input
Why multiplication inside double quotes (" ")
First learn why use double quotes (" ")
0
If i don't add int.class then it shows "cannot find symbol". And to put location.