The code does not work properly. I have created a method that takes user input, adds it to a dynamic array. and then exits when pressing #. then it displays the input. another m