layouts

9.6.7 Cars Github 'link' Review

If you meant something else, please provide more context (e.g., “feature request issue #9.6.7 on cars repo”).

Defining the array list syntax as ArrayList allows the collection to hold its own data type as well as any sub-types ( ElectricCar ). Declaring it as ArrayList would break compile rules, as standard cars cannot fit into electric types. 9.6.7 cars github

scanner.nextDouble() reads a number but leaves the trailing newline ( \n ) character in the buffer. If you meant something else, please provide more context (e