When should I use pre decrement and when to use post decrement?
and for the following code snippet, should I use pre or post decrement.
static privat
you should have ++i; (not that it matters), and should have tempCounter-- Otherwise you will miss the "first" index of charArr
++i;
tempCounter--