printing string backwards and printing every other
i am having trouble with a problem. i have been first trying to convert a string, backwards. here is a way that my book has it:
String backwards = "testing!!!!!";
why doesn't this work?
also, in this statement, what does this mean?: for (i = 0; i < length; i+=2)... you add 2 to every i?
and why can't you have "i<=length"... i saw this on another post here, but didn't quite understand... i did get the same "out of bounds" error message... i thought that it was the int type at first.
int to string, and then getting length
i am trying to convert integers to a string:
i get a dereference error. what does this mean? and how would i fix this?
Integer.toString (doubledNextDigit); //gets all of the double digits, and puts them into a string
int length = doubledNextDigit.length;