About 75,500 results
Open links in new tab
  1. Why is Java Vector (and Stack) class considered obsolete or …

    755 Why is Java Vector considered a legacy class, obsolete or deprecated? Isn't its use valid when working with concurrency? And if I don't want to manually synchronize objects and just …

  2. java - What are the differences between ArrayList and Vector?

    Jun 6, 2010 · What are the differences between the two data structures ArrayList and Vector, and where should you use each of them?

  3. Creating a Vector of Objects in Java - Stack Overflow

    Apr 30, 2015 · The declaration: Vector v = new Vector(); Which constructs a empty Vector,this type of Vector can 'add' ints, booleans, an ArrayList's and other primitive data types and …

  4. Can you do Vector addition in Java, natively? - Stack Overflow

    I Know there's a "Vector" class in java, but it seems to be just a simpler ArrayList type of deal, not an actual, mathematical Vector (as in a magnitude and a direction). Is there any way to do Ve...

  5. Equivalent of std::vector in Java? - Stack Overflow

    What would be the closest thing to a std::vector in Java? By this I mean, a class which can take in T into its constructor and then pushBack, popBack() and that is stored in continuous memory …

  6. Best way to code a small Java 3d vector class [closed]

    Closed 11 years ago. Hi I am currently working on a little project and I have to add a class which allows me to add 2 vectors together / subtract them. The Vector for example is Vector ( x,y,z ) …

  7. How to use multi dimensional vector in java? - Stack Overflow

    Jul 3, 2012 · How to use multi dimensional vector in java? Asked 13 years, 3 months ago Modified 13 years, 3 months ago Viewed 52k times

  8. java.lang.ClassCastException: java.util.Vector cannot be cast to My …

    Sep 25, 2014 · java.lang.ClassCastException: java.util.Vector cannot be cast to My Class Asked 10 years, 11 months ago Modified 10 years, 11 months ago Viewed 11k times

  9. java - What function can be used to sort a Vector? - Stack Overflow

    5 According to the Java API Specification for the Vector class, it implements the List interface which is needed to use the Collections.sort method. Also, as a note, for most uses the Vector …

  10. java - ArrayList vs Vector : Which one to use? - Stack Overflow

    Feb 27, 2014 · According to Java API: "it is recommended to use ArrayList in place of Vector" Still you can get a synchronized version of a List with Collections: …