+ 3

How to get change all String value at a time?

I have 20 String in my class. I want to assign all String value same at a time. How I can do this?

29th Dec 2017, 6:05 AM
Shahed Mohammad Hridoy
Shahed Mohammad Hridoy - avatar
2 Answers
+ 19
first declare a String array of length 20 , then use a any loop which runs 20 times , assign each input taken from user as an element of that array //try making a code & i will try to make some possible corrections //following this thread for now â˜ș, will come back & see
29th Dec 2017, 6:21 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 13
Use strings arrays instead, and assign the same value to them via a loop.
29th Dec 2017, 6:07 AM
Hatsy Rei
Hatsy Rei - avatar