From 883878ed05a60962b83d233cb5a305658eb7fa54 Mon Sep 17 00:00:00 2001 From: Oscar Date: Mon, 25 Apr 2022 13:14:17 -0400 Subject: [PATCH] archivo incial --- Carta.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Carta.java diff --git a/Carta.java b/Carta.java new file mode 100644 index 0000000..2e2ff7d --- /dev/null +++ b/Carta.java @@ -0,0 +1,22 @@ +public class Carta { + public String valor; + public String palo; + public Carta() + { + + } + + public Carta(String completo) + { + this.valor = String.valueOf(completo.charAt(0)); + this.palo = String.valueOf(completo.charAt(1)); + } + + String valorPalo() + { + return this.valor + this.palo; + } + + +} + -- libgit2 0.26.0