Re: Can we do this with println?
On Mon, 29 Oct 2007 05:01:12 -0700, neelsmail@xxxxxxxxxxxxxx wrote,
quoted or indirectly quoted someone who said :
X03 | X05 | X07
------------------------------
X04 | X02 | X08
------------------------------
X01 | X06 | X09
You might find it easier to compose one string for each line and then
print with println.
The ---- could be done with StringTools.rep. See
http://mindprod.com/products1.html#COMMON11
The X01 | could be done in a StringBuilder loop.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
Relevant Pages
- Re: Alternative to if...else for keyword based actions
... println calls the method printlnwith the parameter "Hello ... I could use string tokenizer to separate the parts of the ... public void act{ ... After initializing the Map, ... (comp.lang.java.programmer) - Re: Help with double arithmetic
... The call to printwill convert the double to String using: ... The documentation on String.valueOfindicates it is the same as: ... rather than letting println() convert ... DecimalFormat documentation if you want to format it differently. ... (comp.lang.java.programmer) - Re: chars are missing in filter method
... > dissapiering, I have tryed to use println for debugging, but I can't ... a string containing all of the forward and backward slashes in the source ... (comp.lang.java.help) - Re: max internal length of String
... On Mon, 27 Jul 2009, Aryeh M. Friedman wrote: ... how the output is used it is hard to tell exactly how many [println a length would break half a dozen programs])... ... public class StringLength { ... I suspect that the string isn't really being truncated, but something that's printing it is cutting it off at ~900 characters for some reason. ... (comp.lang.java.programmer) - Re: question about the toString Method
... Have a look at how println is implemented. ... In essence it looks something like this ... How else would you get a String to print? ... Roedy Green Canadian Mind Products ... (comp.lang.java.help) |
|