This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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?
Similar Threads
renaming all files in one dir
Replacing a word in a text file
to read lines inside brackets
ArrayList in jsp using JSTL and springs
Why picture is not being copy