• Post Reply Bookmark Topic Watch Topic
  • New Topic

Finding a string word in a char array  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to find a word in an array of char.....but I'm stuck.

I can't quite figure out how to formulate the code to step through the array and pick out the word.

This is what I have so far...any thoughts would be super appreciated:
 
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should probably read our FAQ on using Code Tags. I've added them to your above post, which most people think makes it easier to read.

Next...forget about java. tell us in English how YOU would work through this. Even better, write out the steps you would give a 10 year old child explaining to THEM how to do it. Come up with a list of steps to follow. Then revise them - expanding each into multiple, smaller, and simpler steps.

Only when you have that done should you consider writing a line of java code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!