X-Git-Url: https://git.piment-noir.org/?p=TP_POO.git;a=blobdiff_plain;f=Piles%2FPile.java;h=5d309d16ab415dbc51092813e85c54ddb56a7d66;hp=07c5a77941427a92e9b3eba87e9bdf7d5e96b7c8;hb=b5d597d83099c155e21695da51bbefeba72c7dc9;hpb=c3a259eead7f8071c655e7844d2109bf618c26f0 diff --git a/Piles/Pile.java b/Piles/Pile.java index 07c5a77..5d309d1 100644 --- a/Piles/Pile.java +++ b/Piles/Pile.java @@ -3,10 +3,20 @@ * */ public class Pile { - private int int_array[]; + private int[] int_array; 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]