You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DataClass.java 319B

12345678910111213141516
  1. import java.util.Vector;
  2. public class DataClass {
  3. private Vector<Object> v = new Vector<Object>();
  4. private Vector<Object> getV() { return v; }
  5. public static void main(String[]argv) {
  6. DataClass dc = new DataClass();
  7. dc.v.add("hello");
  8. dc.doit();
  9. }
  10. public void doit() {
  11. v.add("world");
  12. }
  13. }