Character limit for System.out.println() in Java

后端 未结 6 1502
花落未央
花落未央 2020-12-07 02:01

Is there any character limit for the output of Java\'s System.out.println(String x) statement?

When I try to print some XML from a web service call usin

6条回答
  •  离开以前
    2020-12-07 02:21

    I know that printing very long strings into the Eclipse console results in part or all of the string becoming invisible. You may want to break your xml into chunks. If you are only seeing the tail part of the xml then I'd guess its your console buffer trimming off part of it. @Quaylar posted a link about this.

提交回复
热议问题