Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
i'm using a variable:-
String[] string;
how to append it?
A string array is not dynamic. It has the size you set it should have when you initialize it. To have a dynamic list of strings use ArrayList<String> instead.
ArrayList<String>
To append to a normal string, take a look at StringBuilder
StringBuilder
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.