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 What is wrong? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is wrong?" Watch "What is wrong?" New topic

What is wrong?

Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

System.out.println(x.length);//nO PRINT OUT HERE

Nothing is printed out? Is the method getting called? I notice you call it inside a loop that depends on a conditional statement. My guess is that conditiona is always false.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116
I don't think so.
Please advise me to check
my passing argument is ok or not?
I agree. Here's the link:
subject: What is wrong?