Use standard words to name your methods and variables. createArray.. is a low-level method name. How about displayPatientList() since the code prints out a lists of patients and their details in tabular form?
Consider refactoring the following repeated code for better code quality.
Use standard words to name your methods and variables.
createArray..
is a low-level method name. How aboutdisplayPatientList()
since the code prints out a lists of patients and their details in tabular form?Consider refactoring the following repeated code for better code quality.