File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes String Length Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "String Length" Watch "String Length" New topic

String Length

anchit pancholi
Ranch Hand

Joined: Oct 14, 2010
Posts: 53

i am trying below code :-

i am not getting output of above code nor exception. but length function gave me correct answer i.e. 52001 . and i am able to write output in file but not able to show through System.out.println() at console ;

can someone help me to determine what went wrong ?

Kemal Sokolovic

Joined: Jun 19, 2010
Posts: 825

There might be a limitation on the length of output that can be printed for the console (if you are using IDE like NetBeans or Eclipse that is probably it).

The quieter you are, the more you are able to hear.
anchit pancholi
Ranch Hand

Joined: Oct 14, 2010
Posts: 53
Thanks for help i was using eclipse .
Rajdeep Biswas
Ranch Hand

Joined: Mar 26, 2012
Posts: 187

[quote = Anchit Pancholi]
Are you trying to create a new race of Strings in the po0ol ! Kidding....;) Kemal said it right

The biggest gamble will be to ask a question whose answer you know in that it will challenge your theory |
Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
use this

instead of

Consider Paul's rocket mass heater.
subject: String Length
It's not a secret anymore!