Inspiration
I have been very interested in animals from when I was a child and I have always researched about specific animals habitats, diets, habits, and many other skills. I wanted to create a program that can help people living in a specific state have awareness about particular animals living in that state.
What it does
This program stores five values in an ArrayList. These values are "dog", "cat", "squirrel", "fox", and "mouse." This program allows the user to add additional animals onto the ArrayList. For example, if the user saw a wolf in this state, then the user can just add "wolf" in the output box, subsequently the ArrayList will add "wolf" into the list which lets users know that wolves also live in this specific state.
How we built it
I built this through netbeans which is a java runtime environment. The language used to construct this program was java.
Challenges we ran into
There were a couple of challenges I had ran into. First, I found it difficult to add the user input into the ArrayList. I knew how to make a scanner class, but I didn't know how to combine the scanner class with the ArrayList. Eventually I figured it out and I used the .add method to help me with my code.
Accomplishments that we're proud of
The code successfully runs as whenever a user inputs the species of a specific animal, then this animal will be added onto the ArrayList.
What we learned
I have learned a lot from the beginning of this hackathon, especially since I just started getting into computer science this year. This was my first hackathon. I have learned that creativity is a key component to computer science, and if I enjoy making my code, then there is a greater chance that I will be motivated to add onto my code.
What's next for Stray/Wild Animal Locator
I can definitely add way more to this code. Right now, the user can just input one extra animal at a time onto the ArrayList. I want to figure out how to continuously add more and more animals onto this one ArrayList. Another idea is that I can try to use numerical values and try to state the number of animals of a specific species that are present in this state. I definitely have more ideas to improve this small piece of code. I just need to research some more.
Log in or sign up for Devpost to join the conversation.