Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is wrong?

 
Hui Zhao
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Hui Zhao
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think so.
Please advise me to check
my passing argument is ok or not?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic