aspose file tools
The moose likes Java in General and the fly likes How to compare to char array inside while loop Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to compare to char array inside while loop" Watch "How to compare to char array inside while loop" New topic
Author

How to compare to char array inside while loop

Nitish Mittal
Greenhorn

Joined: Jun 24, 2012
Posts: 5
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 3794
    
    1

So what is the error?
Nitish Mittal
Greenhorn

Joined: Jun 24, 2012
Posts: 5
Array index out of bounds
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 5888
    
    6

It's telling you more than that. It's telling you what index you're trying to access, possibly how many elements the array has, and on which line you're doing it.
Nitish Mittal
Greenhorn

Joined: Jun 24, 2012
Posts: 5
I found my mistake thank you
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 5888
    
    6

Cool. Glad you got it sorted out!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to compare to char array inside while loop
 
Similar Threads
Increment Test
Letters Frequency Counter
null pointer exception in Game Of Life
Return Statements problem
Part of program not printing output