...

View Full Version : Simple question abt Polygon



laland
10-21-2006, 06:56 AM
Hi,
anyone knows how to use a Pre-defined Point class to construct a POlygon?
I suppose to construct 2 constructors: first constructor creates an empty polygon, the second constructor creates a polygon from the array of Point objects. But i STUCK at this point, can anyne give me some ideas to start?

And how do I use the standard Scanner.out.print to print out the vertices that the user entered. Let's say the user entered the number of vertices is 5,
then after tt I hv to ask the user to enter vertices , then i suppose to print out these vertices entered, but how to print out an array, I always get incompatable error when i compile it, anyone has any idea abt this?

Thanx in advance!

laland
10-21-2006, 06:57 AM
anyone knows?

_Aerospace_Eng_
10-21-2006, 09:12 AM
You are kidding right? You waited a minute before you asked if anyone knew. This isn't a "live" forum. We aren't here 24/7. There are other people to help as well. You are not the only one. Also you posted this in the completely wrong section. This is JavaScript NOT Java. Don't go cross posting either, its against the forum rules. Ask a moderator to move this thread.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum