I'm working on a class project where I am supposed to determine how long it will take for someone to be fully vested in their pension. I have to take the time they started working as a string mm/yyyy and then calculate the date they will be fully vested. The number of years they have left can be an int but my problem is that I can't use charAt to get the numbers from mm/yyyy to do the math because it comes out in the ASCII values. If the input is 12 then the 1 will print as 97 or something after using charAt. Is there a way to convert back to the string from the ASCII numbers where I can still keep the first integer?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.