I have an existing java source code. I am modifying this .java file using java parser (jar name - javaparser-core-2.5.1.jar). I need to add an else if statement block e.g:
if(condition1){
//then statement
}else if(condition2) {
//then statement
} else if(condition3) {
//then statement
}else {
//else statement
}
the else if statement with condition3 needs to be added. How can I do that?