Now I am developing a simple project on Java.In that I include String Builder to append and print strings on console.When I am trying to append string array into string Builder,it prints object instead of array of strings on console.any one please tell whether my try is right or wrong.
Dismiss
Announcing Stack Overflow Documentation
We started with Q&A. Technical documentation is next, and we need your help.
Whether you're a beginner or an experienced developer, you can contribute.
|
Edit As a side-note, to make this work with arrays of custom |
|||||||||
|
Array is an Object. Do not directly append the array. Just iterate on array and append each element of array to your String builder.
|
|||
|