hey all
Im in Uni doing a Digital Media Course and one of my Mods is Programming, via BlueJ.
We get set Java problems/questions to solve every couple of weeks and im really stuck on 2 questions, just have NO idea what to do here, they dont really teach us anything as the mod is just the basics and dont really need it for next yr. anyway, here are the questions

thanks
[1]
Write a method called convertDouble as follows:
public double convertDouble (String value) {
...
}
This method should convert its parameter (a string like "3.1415") to the corresponding value of type double. If the string supplied is not a valid number, it should return 0.0 as its result. Note that you can use the method Double.parseDouble() to do the hard work for you.
Note also that the string may contain a standard Form number such as 2.3E-20, 6.6E-32, or -4.127E-22
Insert your convertDouble method in the space below:
AND
[2]
Modify your convertDouble method to ignore any extra characters at the end of the string, so that convertDouble("3.1415xxx") will produce the value 3.1415 as its result.
Note again that the string may contain a standard Form number such as 2.3E-20, 6.6E-32, or -4.127E-22. It may also be null
Insert your convertDouble method in the space below:
Thanks for any help
