June 30, 1998

Image loading

Question: I’m having trouble reshaping a frame to the size of a loaded image. I start out by saying: int fx = image.getWidth(this); int fy = image.getHeight(this);then I try to


Question: How do I go about using exponents in Java? For example, how would I do 6 to the power of 3? Answer: You want to look at the documentation

Dynamic class casting

Question: Does java have dynamic_cast? If so, how is itused? Answer: All class casts of nonprimitive types in Java are dynamic and performed at runtime.In C++ the dynamic_cast operator will

Check if file exists

Question: Is there a way for me to check if a file exists before writing to the file using Java? Answer: You can determine if a file exists by calling