Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Count Ocurence of a character in a string  RSS feed

 
Akash singh Ranawat
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been trying to find a code in which the occurrence of characters in a string without using any string methods can be calculated. Help me with this

and please post few tricky questions on strings.
 
Tim Cooke
Marshal
Posts: 3857
233
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What ideas have you come up with so far?
 
Tapas Chand
Ranch Hand
Posts: 614
9
BSD Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show us what you have done so far.

Akash singh Ranawat wrote:I have been trying to find a code...
This is not a good thing to do. You should try to build the logic (may be using pen-paper) and write the code instead of "trying to find the code" on internet.
Anyway everyone here will be happy to help once you post something which you have done and tell the problems you are facing.
 
Sam Sandhu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should not find codes , try it yourself..first get you basics correct, you want to do programs on string then learn string handling correctly..

 
Campbell Ritchie
Marshal
Posts: 55678
161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, both of you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!