SCJP 1.4<br />SCWCD (in progress)
0181 --> 1220
where
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?
Author of <a href="http://www.amazon.com/exec/obidos/ASIN/0131482114/ref=jranch-20" target="_blank" rel="nofollow">Just Java(TM) 2 (6th Edition)</a>
Originally posted by Nigel Browne:
Then you will have to cast the String into an Integer
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
SCJP 1.4<br />SCWCD (in progress)
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
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 ]
SCJP 1.4<br />SCWCD (in progress)
SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
SCJP 1.4<br />SCWCD (in progress)
Consider Paul's rocket mass heater. |