+ 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?
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
+ 13
Use strings arrays instead, and assign the same value to them via a loop.