From b5d597d83099c155e21695da51bbefeba72c7dc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 12 Jan 2019 22:43:45 +0100 Subject: [PATCH] Code cleanup. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- Piles/Pile.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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] -- 2.34.1