I want to edite the if statement in this example class:
public class foo {
public void m0(Object o){
if(o != null){ // I want to change this if statment
o.build()
}
}
}
to somthing like this:
Example 1 with '||':
public class foo {
public void m0(Object o){
if(o != null || o < 0){ // I want to look like this
o.build()
}
}
}
Example 2 with '&&':
public class foo {
public void m0(Object o){
if(o != null && o < 0){ // // I want to look like this
o.build()
}
}
}
thanks in advance.
Aucun commentaire:
Enregistrer un commentaire