File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Can not find my error ? Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Can not find my error ? Help" Watch "Can not find my error ? Help" New topic
Author

Can not find my error ? Help

G. Graz
Ranch Hand

Joined: Oct 23, 2006
Posts: 30
I can not get my CharacterCount class to work correctly anyone have any ideas what I am missing ? Thank you for the help !




Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18765
    
  40

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
G. Graz
Ranch Hand

Joined: Oct 23, 2006
Posts: 30
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.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3502
    
  13
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.


Joanne
camilo lopes
Ranch Hand

Joined: Aug 08, 2007
Posts: 202
I don't see try {} and catch{} is required. See examples below:


Brazil - Sun Certified Java Programmer - SCJP 5
http://www.camilolopes.com/ About Java - Update every Week.
Guide SCJP - tips that you need know http://blog.camilolopes.com.br/livrosrevistaspalestras/
 
jQuery in Action, 2nd edition
 
subject: Can not find my error ? Help