I am trying to replace the last char in my String .
String bowlNumber = 1.1;
bowlNumber.replace(bowlNumber.charAt(bowlNumber.length-1), 2);
By this I am able to replace my last character i.e 1 to 2.. but the problem is as my first character is also 1 , it also changes that to 2.
What i want is to change 1.1 to 1.2 , but it makes 1.1 to 2.2
Any idea?