Title Generic method for filling an array
Catalog Type SLCItem
Persistent ID https://codecheck.io/files/horstmann/codecheck-bj-4-gen-107
Platform Name CodeCheck
Features Code Completion
Description The class below has a static method which sets all elements of an array to a value. The method is written for an array of strings. This will cause the method to not compile when invoked on arrays of other types. You will need to modify it so that it works for any type.
Keywords Generic Types
Author Cay Horstmann
Institution San José State University
Iframe URL https://codecheck.io/files/horstmann/codecheck-bj-4-gen-107
Protocol SPLICE, LTI 1.1
Protocol URL
License https://creativecommons.org/licenses/by-nc-nd/4.0/
Programming Language Java
Natural Language en

Preview

SPLICE Output