I want to have a function to build a String from inputted characters and stop building if it gets an input character that it contains.
I know I can use String.contains() for this but I am learning about HashMaps and am wondering if a faster way to do this could be storing the inputted characters in a HashMap and using the HashMap.contains() method.
 
     
     
     
    