James Gosling’s Java

arrays, one for . float. arrays, and one for . double. arrays -- then the average of any of the arrays could be calculated simply by passing them to a subprogram named “avg” -- the compiler would know which of the avg’s to use based on the data type of the given array. This sort of subprogram demonstrates Java’s handy use of polymorphism. ................
................