Příklad
public
class
ClassA {
String s;
public void
methodA {
s =
new
Integer(1).toString();
}
}
Řešení
Proveďte náhradu pomocí Integer.toString(1)
public
class
ClassA {
String s;
public void
methodA {
s = Integer.toString(1);
}
}