Ejemplo
public
static
void
main(
String
[] args){
String
str =
new
String(
"Example"
);
//$NON-NLS-1$
System.out.println( str );
}
Solución
Elimine la llamada a
new
Sustituya la llamada String x = new String( valor ) por 'String x = valor'
public
static
void
main(
String
[] args){
String
str =
"Example"
;
//$NON-NLS-1$
System.out.println( str );
}