Hello I have an array int Number and a array strings Extra, i want to add the string ammount and add them to the seccond array (sum).
So my code looked like this
Number[2] = Number[2] + Extra[1]);
I got the error that it cant put a string into a int.
Then i found something on the forum see the code bellow but then i get a diffrent error :
ArrayIndexOutBoundsExepsion: 3
What happens is the print lines first print out from the first loop and after the first time it directly goes in to the second loop and goes back to the first again and so on. I want it to finish the first loop first and after its finished it goes to the second loop. I also tried it with while but the application does not stop looping while the expresion is already false.