Example
public
static
void
main(
String
[] args){
String
str =
new
String(
"Exemplo"
);
//$NON-NLS-1$
System.out.println(str);
}
Solução
Remova a chamada para
new
Substitua a chamada String x = new String( value ) por 'String x = value'
public
static
void
main(
String
[] args){
String
str =
"Exemplo"
;
//$NON-NLS-1$
System.out.println(str);
}