• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Can not find my error ? Help

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can not get my CharacterCount class to work correctly anyone have any ideas what I am missing ? Thank you for the help !




 
author
Posts: 23958
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does the class compile? If not, what is the compile error? If yes, then what is the class supposed to do, and what does it do?

Henry
 
G. Graz
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes it does compile , This program reads a given text, outputs the text as is, and prints the number of lines and the number of times each letter appears in the text. An uppercase letter and a
lowercase letter are treated as being the same; that is,
they are tallied together.
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Greg Grazioli:
Yes it does compile , This program reads a given text, outputs the text as is, and prints the number of lines and the number of times each letter appears in the text. An uppercase letter and a
lowercase letter are treated as being the same; that is,
they are tallied together.



Is that what it actually does or what it is supposed to do ? If it is what it is supposed to do, then tell us what it actually is doing.
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't see try {} and catch{} is required. See examples below:
 
reply
    Bookmark Topic Watch Topic
  • New Topic