To raypru,
(I don't see why you don't want to pass the identification of the calling class into the newly instantiated class)
However if the only reason is that the newly instantiated class "needs to identify which class called it (so that it can look at the configuration file relevant to...
WOW. I am not sure how to help since it looks like a 'due very soon assignment'. And I am still not sure what you are trying to do, and how you are trying to do it.
I see your problem though. You are not writing in an object oriented way. More procedural. Also you are mixing up the...
If you haven't already done so then review the Sun tutorials at
http://java.sun.com/docs/books/tutorial/essential/io/
as well as the java docs on java.io classes.
There are also many other tutorials on the internet dealing with just about every aspect of java.
There are a number of ways to...
I don't understand your problem. ??
CardLayout is simply a way of laying out components so that you only see one at a time. They still exist within your program (unless you have some very odd code). Why not just get the values from each one. The component doesn't have to be visible for your...
What do you mean.
The OP implied that he would need to use the enumerator to match each key of the Hashtable to the "first-letter-string" with the "equals"-method, and then use the actual key to retrieve the object.
This is not true and completely pointless in any...
You do not need to use the enumerator in that way.
The general contract for hashcode includes
'If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result.'
In your case if
public class...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.