• Post Reply Bookmark Topic Watch Topic
  • New Topic

Searching an array  RSS feed

 
Ashok Pradhan
Ranch Hand
Posts: 180
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to search the number of occurrence of specific element in an array

Ex:-I want get the number of a specific character like 'c' present in an char[].
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd do something like:



Can you translate that into valid Java code?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!