Results 1 to 2 of 2
  1. #1
    MadMikeUCF is offline Member
    Join Date
    Apr 2012
    Posts
    1
    Rep Power
    0

    Default Need Help with Vectors

    Alright so I'm still new to java and I'm having some problems with vectors. Basically I am making a game and I created a Vector to hold the moves made. I have 4 separate classes and put import java.util.Vector; in the class with my main method. But I declare the Vector in a separate class by doing Vector moves = new Vector(); When I try to compile I end up getting an error saying Cannot Find Symbol, Symbol: Class Vector. Something tells me I dont fully understand the concept of Vectors and im declaring it wrong. Any Suggestions?

    Thx
    Michael

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: Need Help with Vectors

    I declare the Vector in a separate class by doing Vector moves = new Vector(); When I try to compile I end up getting an error saying Cannot Find Symbol, Symbol: Class Vector.
    Make sure you have imported the Vector class at the start of that other class.

Similar Threads

  1. EventListener for Vectors?
    By Tomtefaen in forum New To Java
    Replies: 4
    Last Post: 01-13-2011, 01:02 AM
  2. Trouble with Vectors
    By zimbobigdog in forum New To Java
    Replies: 4
    Last Post: 12-08-2010, 12:23 PM
  3. Need Help Regarding Vectors
    By xHoly in forum New To Java
    Replies: 6
    Last Post: 05-23-2010, 07:56 AM
  4. Vectors of Vectors or hash-somethings?
    By mindwarp in forum New To Java
    Replies: 3
    Last Post: 03-10-2008, 03:57 PM

Posting Permissions

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