ben
Posts: 57
Nickname: loftty
Registered: Oct, 2002
|
|
Re: mapping a int
|
Posted: Feb 4, 2003 9:30 AM
|
|
I know i can use this idea you have told me. But my problem is that i need to add another line so i have three lines like this
int nums[] = {0,1,2,3,4,5,6,7,8,9};
String keys2[] ={"FirstName", "LastName", "Id", "Addr1", "Phone","County", "Postcode", "Country", "Addr2", "Town"};
String values2[] = {"ben", "ben", "ben", "mum", "ben","mum", "ben", "ben", "mum", "mum"}; and then i want to map them out so that when i find the keys that are equal to values i also want to get the nums. for example if i get out the values that are equal to ben the out print would be this FirstName, LastName, Id, phone, postcode, contry but i also want to get the ints (nums) that are equal to the values so that the out print would be 0,1,2,4,6,7 how can i get my code so it will do this? thanks ben
|
|