Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Simple question abt Polygon

    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!

  • #2
    New Coder
    Join Date
    Oct 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    anyone knows?

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •