From 624d540308345f9b858fc50a504908c7173608bc Mon Sep 17 00:00:00 2001 From: Pedro Rolon Date: Wed, 28 Nov 2018 15:52:36 -0300 Subject: [PATCH] Se agregó código para ordenar las cartas del ejercicio 3 --- jweb-e002/build/classes/.gitignore | 2 ++ jweb-e002/build/classes/servlets/ManoDoc.class | Bin 4840 -> 0 bytes jweb-e002/src/servlets/ManoDoc.java | 32 +++++++++++++++++++++++++++++++- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 jweb-e002/build/classes/.gitignore diff --git a/jweb-e002/build/classes/.gitignore b/jweb-e002/build/classes/.gitignore new file mode 100644 index 0000000..16d62d6 --- /dev/null +++ b/jweb-e002/build/classes/.gitignore @@ -0,0 +1,2 @@ +/clases/ +/servlets/ diff --git a/jweb-e002/build/classes/servlets/ManoDoc.class b/jweb-e002/build/classes/servlets/ManoDoc.class index a8f5e17..bb2a574 100644 Binary files a/jweb-e002/build/classes/servlets/ManoDoc.class and b/jweb-e002/build/classes/servlets/ManoDoc.class differ diff --git a/jweb-e002/src/servlets/ManoDoc.java b/jweb-e002/src/servlets/ManoDoc.java index d51e97d..997cef4 100644 --- a/jweb-e002/src/servlets/ManoDoc.java +++ b/jweb-e002/src/servlets/ManoDoc.java @@ -6,6 +6,8 @@ import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.Collections; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; @@ -56,9 +58,37 @@ public class ManoDoc extends HttpServlet { System.out.println(nombreJugada); System.out.println("************************"); + ArrayList manoString = new ArrayList(); + + for(int i=0; i