what's wrong with my main and time object
package OOP;
import java.util.Scanner;
public class Time {
public int toSeconds(int h, int m, int s) {
int totalseconds = (h * 3600) + (m * 60) + s;
return totalseconds;
}
public void seconds() {
Scanner scanner = new Scanner(System.in);
System.out.print("Enter hours, minutes and seconds");
String[] values = scanner.nextLine().split(" ");
int h = Integer.parseInt(values[0]);
int m = Integer.parseInt(values[1]);
int s = Integer.parseInt(values[2]);
Time time = new Time();
int totalseconds = time.toSeconds(h, m, s);
System.out.println("In only seconds that is: " + totalseconds);
public static void main(String[] arg) {
Time time new Time();
time.seconds();
}
scanner.close();
}
}