I'm working on a small program to compare service levels, the user will input the service level 2 times (current and requested) and then the input will be scanned and compared and show a message.
For example:
current = 9*5 NBD (a)
requested = 24*7 SBD (b)
I want to know how in Java I can tell the compiler that (b) is greater than (a) Because I want to use if statement like this
if (b > a) then show message.
I tried to use string.equals, but didn't help me too much. I was not successful to convert string to number to do such comparison.