Commits

Cristian Viorel Pasat committed 8d8e246 Draft Merge

Merge with 0df54d20106eea249b74e55fbbee80a45e0c82e4
Mercurial said i had 2 (two) branches. Why or how, i do not know, but i merged them.

  • Participants
  • Parent commits d90d737, 0df54d2

Comments (0)

Files changed (1)

src/WorkingWithVectors.java

+import java.util.Vector;
+
+
+public class WorkingWithVectors {
+
+	/**
+	 * @param args
+	 * 
+	 * Simple using of class Vector. 
+	 * Nothing to do here!
+	 * 
+	 */
+	public static void main(String[] args) throws Exception {
+		// TODO Auto-generated method stub
+		
+		Vector<Integer> vecti = new Vector<Integer>();	
+//		Vector trebuie sa primeasca o clasa, de aceea am folosit "Integer", 
+//		si nu int.  
+		
+		for (int i = 1; i <=123456; ++i)
+			vecti.add( (2*(7*i+486*i/2)%191*i) ); 	// se vede k e facuta de mine :D
+		
+		for (int i = 1; i < 123456; ++i)
+			System.out.println (vecti.get(i)); 		// il afisez
+
+	}
+
+}