I worked on a project where I built YiruiwHashTable
I did everything for this project by myself. My main job was to write the code that made this table work. I made sure that it could hold any type of item and that it could add, find, and remove items really well. I also wrote special rules for how the table decides where to put each item so that they can be found easily later.
Making this table taught me a lot. I learned how to organize things in a program so that you can find them really fast, which is super important for making good software. I also got better at using Java, especially at making it work with different kinds of items. It was a great experience because I got to see how things I’ve learned in computer science classes work in a real project.
table size: 0 table is empty? true putting at index: 6 putting at index: 2 putting at index: 5 putting at index: 4 putting at index: 8 table: table[0] = [] table[1] = [] table[2] = [cat] table[3] = [] table[4] = [dog] table[5] = [horse] table[6] = [CAT] table[7] = [] table[8] = [Kapiolani CC] table[9] = []
table size: 5 table is empty? false putting at index: 9 putting at index: 0 putting at index: 9 putting at index: 1 putting at index: 7 table: table[0] = [pig] table[1] = [elephant] table[2] = [cat] table[3] = [] table[4] = [dog] table[5] = [horse] table[6] = [CAT] table[7] = [rat] table[8] = [Kapiolani CC] table[9] = [cow, chicken]