0181 --> 1220
the first two digits represent the month
and the second two digits represent the year.
how I can store a number such as 0299 within an integer?
Originally posted by Nigel Browne:
Then you will have to cast the String into an Integer
Originally posted by Nigel Brown:
Originally posted by Ilja Preuss:
That's not casting. Casting is the use of the cast operator: http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#238146
Apologies for my miss use of the word cast. I should of course have used the word parse and I have corrected my original post occordingly.
[ October 06, 2004: Message edited by: Nigel Browne ]