Author: Ayad Boudiab
Title: Java Eclipse - Arrays Lesson 3
Description: This video discusses arrays of complex types. We create an Employee class, then we created an array of 4 employees. We print the content of the arrays on the screen using Arrays.toString method. We added the imterface Comparable to the Employee class and implemented the method compareTo. Now that we know how the employees will be compared, we sorted them using Arrays.sort method. Finally, we discussed multi-dimentional arrays (arrays of arrays - like a table), and ragged arrays (which are arrays that do not have the same number of columns). Methodology: Good coding standards and object-oriented design. Technologies: Java, object-oriented programming Examples constructed: This example extends the array functionality to create an array of complex types (Employees). We implemented the interface Comparable to be able to sort the Employee array. Then we showed how to create 2 dimentional arrays and ragged arrays.
Key words: Array, Arrays, Ragged array, multi-dimentional array, deepToString, printf, Comparable, compareTo, format