Missing required fields
Posted by Anonymous Wed 28th Feb 2007 14:14 - Syntax is Java - 100 views
Download | New Post | Modify | Diff | Hide line numbers
  1. import java.util.Vector;
  2.  
  3. public class vectors {
  4.  
  5.     /**
  6.      * @param args
  7.      */
  8.     public static void main([] args) {
  9.         v = new ();
  10.         v.add("TestA");
  11.         v.add("TestB");
  12.         v.add("TestC");
  13.         //does not compile without conversion
  14.         //String back = v.get(1);
  15.         back = () v.get(1);
  16.         .out.println(back);
  17.     }
  18. }
  19.  

PermaLink to this entry https://pastebin.co.uk/11160

The following amendments have been posted:

  1. Anonymous (Wed 28th Feb 2007 14:18)
Posted by Anonymous Wed 28th Feb 2007 14:14 - Syntax is Java - 100 views
Download | New Post | Modify | Diff | Hide line numbers

 

Comments: 0