.Replace Errors from minecraft

To solve your error, you can do the following:

The replace method only accept (charSequence toReplace, charSequence replacement) as parameters. You can easily add your int to be replace on the method, doing the following:

int i = 0;
String iString = String.valueOf(i);

String.valueOf(int i) converts the int i to a String form, making it a CharSequence. That way you can use the replacemethod with your integer.

Leave a Comment