Discover the answers you need at Westonci.ca, a dynamic Q&A platform where knowledge is shared freely by a community of experts. Discover solutions to your questions from experienced professionals across multiple fields on our comprehensive Q&A platform. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform.
Sagot :
The total works in seconds after we code in Java is 74536.
How to convert time in Java?
Operator in Java programming language is a symbol to perform mathematic operation. The compound operator is the compound symbol that combining two mathematic operation. For this code we gonna use compound operator +=, but before code I will provide you example.
a += b is equal to a = a + b.
The code is,
public class workshift {
public static void main(String[] args) {
int hours = 20, minutes = 42, seconds = 16;
int tSeconds;
tSeconds = (hours*60*60);
tSeconds += (minutes*60);
tSeconds += seconds;
System.out.println(tSeconds);
}
}
Learn more about operator here:
brainly.com/question/18088519
#SPJ4
Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.