Java Forums
Our Goal is to achieve and build a community. Even if there is nobody on the forum, please register. If we have a small community, people will see we have at least people and they will register. Any people please register!

Cheers,
Slick Java (Owner + Admin)
Java Forums

Share your Java programming ideas here.
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Our Goal is to achieve and build a community. Even if there is nobody on the forum, please register. If we have a small community, people will see we have at least people and they will register. Any people please register! Cheers, Slick Java (Owner + Admin)
We are also looking for moderators and admins.

Share | 
 

 Character census

Go down 
AuthorMessage
Slick Java
Admin
Admin
avatar

Posts : 9
Points : 10004171
Join date : 2013-03-15
Age : 18

PostSubject: Character census   Thu Mar 21, 2013 12:57 pm

I need help for my homework assignment
For a given string of text, count how many of each character there are and then print the results:

input:
Bookkeeping books

output:
B 1
b 1
e 2
g 2
i 1
k 3
n 1
o 4
p 1
s 1

_________________
Why you should beat your kids (extract) - Russell Peters (comedian)

I grew up around black people. We always go to the playground. Time to time a white kid comes around. But do you want the white kid to feel left out?

'My dad jacked my ass last night'
'Yeah, he did too'
'yeah'
'me to'
'MY DAD SENT ME TO MY ROOM'
'YOU HAVE A ROOM??'

https://www.youtube.com/watch?v=o4oO7ZdfSFI
Back to top Go down
View user profile http://java.forumotion.co.uk
 
Character census
Back to top 
Page 1 of 1
 Similar topics
-
» Which Naruto Shippuden Character are you?
» Who's the most powerful character in fiction?
» Comic Physique?
» character battle
» The animé character identity mix up

Permissions in this forum:You cannot reply to topics in this forum
Java Forums :: New to Java :: Problems + Questions-
Jump to: