java - How to return a string -


i have question, have created method tostring(), want method print out 2 strings int[] , char. while using string.format(), how 1 go this?

one quick way print out guys, includes

@override public string tostring() {   return string.format("%s %c", java.util.arrays.tostring(intarray), mychar); } 

but knows if output want? devil's in details of desired output. question very incomplete, vague. please consider giving more of important details of you're trying achieve , how current code or doesn't work.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

objective c - Ownership modifiers with manual reference counting -

python 3.x - Mapping specific letters onto a list of words -