EDIT: i mean "parsing number from a string?" sorry.
what should i do to parse a number from a string?
i tried this.
Double leap = Double.parseDouble(this.yyyy);
but it gives me error.
i want to keep the zero in front of the input.
for example:
1. i input 08 (this is a string)
2. parse the 08 to an appropriate data type, and it should not lose the leading zero.
how?
BTW, i'm creating a program that checks if the year inputd is a leap year. the needed input is only two digits.