So this is another thing that we need for the documentation and after accomplishing so much with what I did so far (LOL), I'll do this documentation bit.
RYK: ALL DOCUMENTATION/PARAGRAPHS REQUIRED FOR ASSIGNMENT IS IN YELLOW.
Arrays of Objects are very helpful when programming. Because an object is at the very top of the hierarchy, it can use methods from anything below it; string, double, float, integer, and more. This makes it a lot easier to compare objects because they will be of the same type. It is the same thing for a Comparable object, but I cannot use this type of Object to create a JTable, so my main focus will the Array of Objects. I created an array of objects so that all previous entries could be shown on a table where the user can choose to delete, add, or view entries. The array of objects makes this a lot easier because I can search or sort things much easier. In JTables, they have to be in a 2D array, so instead of an array of different object inside, I used just an array of objects to store all the information. It is very useful because it is easy to interact with and easy to see.
No comments:
Post a Comment