Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r38 - trunk/jbraid/src/jbraidtest/VectorTest.java

jbraid
Discussion topic

Back to topic list

svn commit: r38 - trunk/jbraid/src/jbraidtest/VectorTest.java

Reply

Author nitsan
Full name Nitsan Seniak
Date 2008-12-27 11:43:13 PST
Message Author: Nitsan
Date: 2008-12-27 11:43:12-0800
New Revision: 38

Added:
   trunk/jbraid/src/jbr​aidtest/VectorTest.j​ava

Log:


Added: trunk/jbraid/src/jbr​aidtest/VectorTest.j​ava
Url: http://jbraid.tigris​.org/source/browse/j​braid/trunk/jbraid/s​rc/jbraidtest/Vector​Test.java?view=marku​p&pathrev=38
====================​====================​====================​==================
--- (empty file)
+++ trunk/jbraid/src/jbr​aidtest/VectorTest.j​ava 2008-12-27 11:43:12-0800
@@ -0,0 +1,32 @@
+package jbraidtest;
+
+import java.util.Vector;
+
+import net.jbraid.runtime.Braid;
+
+public class VectorTest {
+
+ public static void main(String[] args) {
+
+ Braid.beginSeries("Vector");
+
+ Vector<String> v = new Vector<String>();
+
+ Braid.beginPseudoThread("Thread 1");
+ v.add("Hello");
+ v.add("world");
+ String res = "";
+ for (String s: v) {
+ res = res + s;
+ }
+ Braid.endPseudoThread();
+
+ Braid.beginPseudoThread("Thread 2");
+ v.remove(0);
+ Braid.endPseudoThread();
+
+ Braid.endSeries();
+
+ }
+
+}

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r38 - trunk/jbraid/src/jbraidtest/VectorTest.java nitsan Nitsan Seniak 2008-12-27 11:43:13 PST
Messages per page: