tracks/java/exercises/poker/src/example/java/Card.java in trackler-2.1.0.53 vs tracks/java/exercises/poker/src/example/java/Card.java in trackler-2.1.0.54
- old
+ new
@@ -1,25 +1,25 @@
-public class Card {
- private int rank;
- private int suit;
+class Card {
+ private int rank;
+ private int suit;
- public Card(String card) {
- rank = parseRank(card);
- suit = parseSuit(card);
- }
+ Card(String card) {
+ rank = parseRank(card);
+ suit = parseSuit(card);
+ }
- public int getRank() {
- return rank;
- }
+ int getRank() {
+ return rank;
+ }
- public int getSuit() {
- return suit;
- }
+ int getSuit() {
+ return suit;
+ }
- private int parseRank(String card) {
- return "..23456789TJQKA".indexOf(card.charAt(0));
- }
+ private int parseRank(String card) {
+ return "..23456789TJQKA".indexOf(card.charAt(0));
+ }
- private int parseSuit(String card) {
- return ".HSDC".indexOf(card.charAt(1));
- }
-}
\ No newline at end of file
+ private int parseSuit(String card) {
+ return ".HSDC".indexOf(card.charAt(1));
+ }
+}