I have a String Like this.
line = "AAL,American Airlines Group,100";
String item = line.split(",");
String replace = "200";
Since Strings are immutable, you have to pass it to a new variable or to the current variable:
line = line.replaceAll(item,replace);
The both ways with
\\d+ should work.