Posted by Anonymous Wed 28th Feb 2007 14:14 - Syntax is Java - 101 views
Download | New Post | Modify | Diff | Show line numbers
import java.util.Vector;

public class vectors {

    /**
     * @param args
     */

    public static void main([] args) {
        v = new ();
        v.add("TestA");
        v.add("TestB");
        v.add("TestC");
        //does not compile without conversion
        //String back = v.get(1);
        back = () v.get(1);
        .out.println(back);
    }
}
 

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 - 101 views
Download | New Post | Modify | Diff | Show line numbers

 

Comments: 0