By profiling a word (or a string of characters) I mean: 

  (a) counting the number of times each character occurs
  (b) and reporting it, along with the character 

Here's how my program works. 

-bash-4.1$ pico -w Eighteen.java
-bash-4.1$ javac Eighteen.java
-bash-4.1$ java Eighteen
Please enter a word or a sentence to profile: banana
b shows up 1 times in the given sentence.
a shows up 3 times in the given sentence.
n shows up 2 times in the given sentence.
-bash-4.1$ java Eighteen
Please enter a word or a sentence to profile: "new mexico"
" shows up 2 times in the given sentence.
n shows up 1 times in the given sentence.
e shows up 2 times in the given sentence.
w shows up 1 times in the given sentence.
  shows up 1 times in the given sentence.
m shows up 1 times in the given sentence.
x shows up 1 times in the given sentence.
i shows up 1 times in the given sentence.
c shows up 1 times in the given sentence.
o shows up 1 times in the given sentence.
-bash-4.1$ java Eighteen
Please enter a word or a sentence to profile: "Once upon a time... "
" shows up 2 times in the given sentence.
O shows up 1 times in the given sentence.
n shows up 2 times in the given sentence.
c shows up 1 times in the given sentence.
e shows up 2 times in the given sentence.
  shows up 4 times in the given sentence.
u shows up 1 times in the given sentence.
p shows up 1 times in the given sentence.
o shows up 1 times in the given sentence.
a shows up 1 times in the given sentence.
t shows up 1 times in the given sentence.
i shows up 1 times in the given sentence.
m shows up 1 times in the given sentence.
. shows up 3 times in the given sentence.
-bash-4.1$