java - print array of objects without brackets -


how can print array 2d without brackets. adding first array new values 2d :

books=(object[][]) arrays.copyof(row,2); 

whereas books initialized 2d array :

    static object[][] books=new object[1][1]; 

but when try print first row books :

system.out.println(arrays.deeptostring(books[0])+" "); 

it prints me brackets , commas

[asds,asdas,223] 

like suppose do.

how can remove those?

thank !

you can try this

string output ;     for(string s: books[0]){       output = output +s+ ",";     } output = output.substring(0, output.length()-1); system.out.print(output); 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -