From 1c4ad4024deee6cfae7550efdccb298de1d1195a Mon Sep 17 00:00:00 2001 From: josdem Date: Wed, 10 Apr 2024 13:55:30 -0400 Subject: [PATCH] Setting to final --- .../src/main/java/com/josdem/kata/CharactersCounter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple-algorithms/counting-characters/src/main/java/com/josdem/kata/CharactersCounter.java b/simple-algorithms/counting-characters/src/main/java/com/josdem/kata/CharactersCounter.java index fdf90d8..dcd073c 100644 --- a/simple-algorithms/counting-characters/src/main/java/com/josdem/kata/CharactersCounter.java +++ b/simple-algorithms/counting-characters/src/main/java/com/josdem/kata/CharactersCounter.java @@ -3,8 +3,8 @@ import java.util.Arrays; import java.util.List; public class CharactersCounter { - private List vowels = Arrays.asList('a', 'e', 'i', 'o', 'u'); - private List consonants = + private final List vowels = Arrays.asList('a', 'e', 'i', 'o', 'u'); + private final List consonants = Arrays.asList( 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'r', 'p', 'q', 's', 't', 'v', 'w', 'x', 'y', 'z');