repositories
/
TP_POO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code cleanup.
[TP_POO.git]
/
Piles
/
Pile.java
diff --git
a/Piles/Pile.java
b/Piles/Pile.java
index ccd9fa769852c1b82b964e4090df503f1a6a5491..5d309d16ab415dbc51092813e85c54ddb56a7d66 100644
(file)
--- a/
Piles/Pile.java
+++ b/
Piles/Pile.java
@@
-7,6
+7,16
@@
public class Pile {
private int array_size;
private int head_index;
private int array_size;
private int head_index;
+ /**
+ * [Pile description]
+ * @param int size [description]
+ */
+ Pile(int size) {
+ int_array = new int[size];
+ setSize(size);
+ setHeadIndex(0);
+ }
+
/**
* set the size of the internal array
* @param int size the size of the array
/**
* set the size of the internal array
* @param int size the size of the array
@@
-39,16
+49,6
@@
public class Pile {
return head_index;
}
return head_index;
}
- /**
- * [Pile description]
- * @param int size [description]
- */
- Pile(int size) {
- int_array = new int[size];
- setSize(size);
- setHeadIndex(0);
- }
-
/**
* [empiler description]
* @param int value [description]
/**
* [empiler description]
* @param int value [description]