Példa
public
static
void
main(
String
[] args ){
String
str =
new
String(
"Example"
);
//$NON-NLS-1$
System.out.println( str );
}
Megoldás
Távolítsa el a
new
meghívását
Helyettesítse a String x = new String( value ) hívást 'String x = value' karaktersorozattal
public
static
void
main(
String
[] args ){
String
str =
"Example"
;
//$NON-NLS-1$
System.out.println( str );
}