How can i change items in my paired array | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i change items in my paired array

i created three arrays an paired them together , now i want to change one array withoit eefecting the others { i have a string for name of product, quantity for double and price for intigers } now i want to change the price and update it to the array https://code.sololearn.com/cloXZ5CuxI19/?ref=app https://code.sololearn.com/cloXZ5CuxI19/?ref=app

3rd May 2018, 6:20 PM
Fabricio Litthau
Fabricio Litthau - avatar
4 Answers
+ 8
Oh, Java, lucky me ;) What do you mean by 'paired them together'? Could you add your code to the playground and link it here?
3rd May 2018, 8:25 PM
Tashi N
Tashi N - avatar
+ 7
I modified it a little and added an example how to change the price. Hope it helps: https://code.sololearn.com/c9WvXCm7JpSc/?ref=app
3rd May 2018, 10:19 PM
Tashi N
Tashi N - avatar
+ 6
Please add the programming language you ask for to the tags (edit the post). Thank you.
3rd May 2018, 8:19 PM
Tashi N
Tashi N - avatar
+ 1
thanks Tashi N
3rd May 2018, 8:22 PM
Fabricio Litthau
Fabricio Litthau - avatar