Add some printlns to the showCases method to display the values of the variables that control whether it prints or not.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
You need more printlns for debugging.
Add a println at line 4 to show the value of a.
Add a println before line 2 to show the length of the array
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
I suspect that 27 "null" messages were printed.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656