This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Fixing a bug on Adding & Deleting an Array index  RSS feed

 
Jere Johnson
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My program does the general processing correctly.
By entering a character in the textField, i am able to Search for the character i am looking for and count how many times it appears in the array. The problem i am currently running into is that the character i search for in the array, gets added to an array index. I am also having the same issue entering "end" to finish the array.
I dont want this extra add "glitch" to happen. How can i manipulate this process, so that the character i search for is not added to my array?

Here is my program
 
Balaji Natarajan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this code...slightly modified urs....
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!