From: Jérôme Benoit Date: Sat, 12 Jan 2019 21:43:45 +0000 (+0100) Subject: Code cleanup. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=TP_POO.git Code cleanup. Signed-off-by: Jérôme Benoit --- 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]