how to change a string in an array to int ??
Hi everyone, I am only learning java so please
excuse me if seems a silly question.
I have done a 2d array
start car destination time
Code:
{{london, ford, leeds, 90}
{london, vauxhall, ipswitch, 85}
{leeds, ford, manchester, 80}}
I know in an array all val's are of type string
what i need to do is a method to change time to int
ie. if i call london to leeds using ford it will
display time at 90, i would then want to call leeds
to manchester which should add 90 + 80 giving a time
of 170.
any idea's as I have been trying to find out how to make a object
in an arry and declare that object as a int(time)
would be grafull if any one can point me in the right direction
thanks
Lindsey