I'm learning about data abstraction/enums and maybe that's a clue to how my professor wanted me to approach this but I'm stumped. I wrote the following code and it works but I wanted to know if anyone else out there had better ideas to do it/ more sophisticated ones. ![]() ![]() For example, if you wanted to type the letter ‘D’, you would need to press the number 4 key. Each key is usually assigned 3-4 letters and you will need to tap the key the correct number of times to get the correct letter you want. Enter some letters and see (and even dial) the corresponding number. Typing letters on a phone keypad requires you to use multi-tap typing, as each key is assigned multiple letters. ![]() I'm writing a Telephone class and it has a method called getDigits which takes in a String parameter and returns the number that would appear on your phone if you typed in those letters the old fashioned way.Įxample: Typing in "CAT" would return 228. PhoneSpell mnemonic phone number services help you pick a toll free vanity 800.
0 Comments
Leave a Reply. |