|
I suggest you try it out - if you can accomplish it, you'll have learnt a lot. Basically, what you need to do is read the whole thing into a string, check the last character (which should be 'C' or 'F') - you can use charAt for this, and use a function that converts a string to a floating-point number to decipher the rest. I don't know Java, so I can't point you in the direction of a specific function, but someone else should be able to give you a hand.
|