Friday, May 21, 2010

When trying to construct a rectangle in java, what is the import method i have to right down?

I put down "import java.awt.Recangle;"- not in quotations but just like it is in the editor. Every time i try compiling it it says Rectangle is already defined in this compilation unit. Also, if you can what is the import method for random numbers. I got "import java.util.random;" Please help me ASAP!

When trying to construct a rectangle in java, what is the import method i have to right down?
you've now imported the "library" to construct a rectangle...





the library has methods, variables, ect to make the code reusable and simple to work with...





You'll need to create a rectangle object and then display it on a "canvas"...





Good luck... could you possible post your code so we can help you more specifically... your question is very vague... for example... which editor? put down? it would seem you have taken a giant leap and probably need to back up and learn a little more...
Reply:I don't think you can right anything down. You'd have to write it down.


No comments:

Post a Comment