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
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
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Java Forums

Share your Java programming ideas here.
 
HomeLatest imagesSearchRegisterLog 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.

 

 Character census

Go down 
AuthorMessage
Slick Java
Admin
Admin
Slick Java


Posts : 9
Points : 10008183
Join date : 2013-03-15
Age : 23

Character census Empty
PostSubject: Character census   Character census Icon_minitimeThu 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
Back to top Go down
https://java.forumotion.co.uk
 
Character census
Back to top 
Page 1 of 1

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