createArray.. and returnArray... are low-level method names.
view() is ambiguous as there are at least two such methods as below.
Remove unused lines of code to increase code quality.
To refactor comments below
a. Indent comments relative to their position in code. See standard conventions for comments.
b. Comment minimally but sufficiently. view patient does not explain more on what the code does. How about displays a patient 's full details (name, age, address, etc.) given an NRIC.
Block 1 and block 2 are of different level of abstraction than 3. Consider abstracting them out into separate methods to ensure SLAP.
createArray..
andreturnArray..
. are low-level method names.view()
is ambiguous as there are at least two such methods as below.Remove unused lines of code to increase code quality.
To refactor comments below