No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
You have to call it as [ICODE]int count[] = LetterHist.letterHist ("afayafkhkFFGhjk");[/ICODE] Read this link on static methods in Java, it describes how to use static methods. [url]http://leepoint.net/notes-java/flow/methods/50static-methods.html[/url]
Since you're always reading in 5 things at a time, read in the first five things from the file and store them in the structure, then traverse the linked list to the next node. You don't need any of this "if i == 0" business or any of those other …
[QUOTE=ceyesuma;1189988]Is there any way to get this exception from properties so I can pass it to a JOptionPane?[/QUOTE] You can't pass an Exception to a method. The point of an Exception is to signal that something went wrong and to give the person who called the method the opportunity to …
You can use the Java reflection API to do this, but you're probably over-complicating your project. [url]http://java.sun.com/docs/books/tutorial/reflect/member/fieldValues.html[/url]
A homework question with an incredibly easy answer. But you should not expect others to write that answer for you.
The End.
Tiger Woods