Yes. No reason to use two variables. Also, not know that n++ is a post increment is a bit green.

On Thu, May 26, 2011 at 9:18 PM, Haggai Nyang <haggai.nyang@gmail.com> wrote:
However, that's noob coding, I'd refactor that to something like:

int n = 0;
while(n <= 5) {
  System.out.println(++n);
}

_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke



--
Regards

Brian Ngure