Hi I recently started a new job and i've just been giving my first proper coding task. It is to write a method that will take a value and convert it to something else. eg. If the method receives Payment it will return 'P'. I'm just looking for the best way I can do this, I was thinking of just using an if or switch statement but if anyone has any better ideas let me know. I want to prove to my team that I am a good coder.
Thanks