This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring 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?
It's not a secret anymore!