I always wondered how companies came up with the catchy words at the end of their phone numbers like 1-800-GOT-JUNK or 188-WAIT-WAIT, so I decided to make a program of my own. I took inspiration from password crackers that use rules to manipulate large dictionaries. While the similarities may not be immediately apparent, I figured that I could make a dictionary of words that could be manipulated and compared to a phone number. So, I made a method that does just that. If the dictionary word isn't exactly 7 characters long, it parses both the front and the back of the number to find matches. I also designed a method that gives the user a number based on an inputted word and another method that adds words to the dictionary file.
I ran into several bugs during the method coding phase. Most of them were based off of using the incorrect import statements and logical errors, but the hardest part by far was implementing the GUI. I had never built a GUI in Java or any other language, so I was learning everything from scratch. I was stuck the longest on updating a TextField and implementing a scroll bar. It got to the point to where I was considering just using a text based version, but I stuck with it and it was incredibly rewarding when I finally got both to work! Ultimately, I learned not to be intimidated when tackling a new project, and I became more comfortable with coding in unfamiliar ways.
Log in or sign up for Devpost to join the conversation.