This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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: 18876
    
  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: 3605
    
  15
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/
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can not find my error ? Help