This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 16690
    
  19

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: 3011
    
    9
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/
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Can not find my error ? Help
 
Similar Threads
Need some help with output to file
Counting one character at a time from a file
Hello! New here, question understanding some code
odd n even numbers program
float