Question: must be coded in java. Please refer to image 2, to see what the code requires. Instructions Given a String variable s that has been
must be coded in java. Please refer to image 2, to see what the code requires.


Instructions Given a String variable s that has been initialized and references two sequences of digits, separated by a colon. Here are two examples: "15:42" and "1901:77". Write some code converts these two digit sequences to integers and adds them putting their sum into a variable, sum that has already been declared to be an int So, for these two examples, sum would end up with 57 and 1978 respectively. O Submit History: * (2 of 2) 02/21/21 10:29:32 Integer.parseInt CodeLab Analysis: Compilation Error(s) . You should use, . You should use: ; . You should use: = . You should use: 0 You should use: 1 . You should use: ";" You should use: k . You should use: int . You should use: sum . You should use: substring Compiler Errors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
