projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d355790
)
constructor to specify initial capacity
author
jjenista
<jjenista>
Mon, 23 Feb 2009 23:14:33 +0000
(23:14 +0000)
committer
jjenista
<jjenista>
Mon, 23 Feb 2009 23:14:33 +0000
(23:14 +0000)
Robust/src/ClassLibrary/Vector.java
patch
|
blob
|
history
diff --git
a/Robust/src/ClassLibrary/Vector.java
b/Robust/src/ClassLibrary/Vector.java
index 2cb0a8fca2d87eeea5df573e61f3761406a06da9..bd1489383fffe9d130255cdd217ae51f145446c4 100644
(file)
--- a/
Robust/src/ClassLibrary/Vector.java
+++ b/
Robust/src/ClassLibrary/Vector.java
@@
-9,6
+9,12
@@
public class Vector {
array=new Object[10];
}
+ public Vector( int size ) {
+ capacityIncrement=0;
+ this.size=0;
+ array=new Object[size];
+ }
+
public void clear() {
size=0;
array=new Object[10];