Can someone please tell me what's wrong with my code?
I'm trying to make a more advanced time converter in java that converts years into months, days, hours, minutes, and seconds. This is my code: import java.util.Scanner; public class Program { public static void main(String[] args) { String m="Months:"; String w="Weeks:"; String d="Days:"; String h="Hours:"; String min="Minutes:"; String s="Seconds:"; Scanner years = new Scanner(System.in); System.out.println(m); System.out.println(years.nextInt()*12); System.out.println(w); System.out.println(years.nextInt()*52); System.out.println(d); System.out.println(years.nextInt()*365); System.out.println(h); System.out.println(years.nextInt()*365*24); System.out.println(min); System.out.println(years.nextInt()*365*24*60); System.out.println(s); System.out.println(years.nextInt()*365*24*60*60); } }