Java Tutorial #5 — Calculating seconds

Topics Discussed: Using what we’ve learned so far to calculate how many seconds are in a user-defined amount of time Source Code for Lesson 5: import java.util.Scanner; class Jtutorial1 { public static void main(String args[]){ Scanner input = new Scanner(System.in); int days=0, hours=0, minutes=0, seconds=0; //Prompt the user fpr how many days. How many hours.... » read more