Which one will be faster in Java, Increment operator or Decrement operator?
a) for(int i = 0; i < 1000; i++) {} b) for(int i = 1000; i > 0; i--) {}
I want a java method which will take input as a string and return a string with char count, please help.