I have been using the scanner so far for taking inputs in java but what i need for this particular task is setting values for 4 variables with a single line input i.e. 07:05:45PM
The C equivalent solution for this particular solution is as follows:
scanf("%d:%d:%d%s", &hh, &mm, &ss, t12) ;
I am looking for the java equivalent of this code.