Being new isn't an excuse for not reading the String API and learning how to use the split() and/or substring() methods. In fact, it's the reason I'm not going to do it for you. Read the String API...
Type: Posts; User: GregBrannon
Being new isn't an excuse for not reading the String API and learning how to use the split() and/or substring() methods. In fact, it's the reason I'm not going to do it for you. Read the String API...
Ah, the acronym sounded familiar, but I couldn't pull it, and using an SDF is not a bad way to go.
Alternatively, if the date is entered correctly, the mm, dd, and yyyy parts can be easily...
What's SDF? An approach would be to use a number of 'if' statements that set the correct rate based on the meter reading date.
Show the Java version of the equations you've tried, the ones with "overlapping variables," and maybe we can help you fix those.
Welcome to the Forum! Please read this topic to learn how to post your code correctly along with other useful info for newcomers.