Timeline for Finding specific value inside an Array (not List)
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 19, 2015 at 18:19 | comment | added | Solocid | hat scans the input however, I want to scan the array itself, after all the wanted words are typed. Which means all the input will be done and the array will be filled with elements, after that I want to scan it and find if the specific value exists, I tried this however (as suggested from @SURESH ATTA. And I think this might be exactly what I was looking for. Thanks anyways, I'll write down your code down for future personal reference. | |
| Aug 19, 2015 at 18:15 | history | edited | eric.m | CC BY-SA 3.0 | added 219 characters in body |
| Aug 19, 2015 at 18:13 | comment | added | eric.m | Sorry, I thought you were asking for another thing xD. After words[count] = sc.next();, add 'if (words[count].equals("ubt")) wordCount++; | |
| Aug 19, 2015 at 18:10 | comment | added | Solocid | I'm confused here, how do I add this to my code to increase the value of wordCount, everytime the specific word is typed? | |
| Aug 19, 2015 at 17:55 | history | answered | eric.m | CC BY-SA 3.0 |