This is my code.
String x = "1+√10";
x = x.replace(".*", "x");
System.out.println(x);
This should return "x" but istead it is returning "1+√10". Why isn't this working?
This is my code.
String x = "1+√10";
x = x.replace(".*", "x");
System.out.println(x);
This should return "x" but istead it is returning "1+√10". Why isn't this working?