X-Git-Url: https://git.piment-noir.org/?p=TP_POO.git;a=blobdiff_plain;f=Piles%2FPile.java;fp=Piles%2FPile.java;h=5d309d16ab415dbc51092813e85c54ddb56a7d66;hp=ccd9fa769852c1b82b964e4090df503f1a6a5491;hb=b5d597d83099c155e21695da51bbefeba72c7dc9;hpb=fa0086ca7eb737d3d8d0370387584fd13cb96c02 diff --git a/Piles/Pile.java b/Piles/Pile.java index ccd9fa7..5d309d1 100644 --- a/Piles/Pile.java +++ b/Piles/Pile.java @@ -7,6 +7,16 @@ public class Pile { 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 @@ -39,16 +49,6 @@ public class Pile { 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]