使用java解析器编写else if语句
我有一个现有的java源代码。我正在使用java解析器(jarname-javaparser-core-2.5.1.jar)修改这个.java文件。 我需要添加一个else if语句块,例如:使用java解析器编写else if语句,java,javaparser,Java,Javaparser,我有一个现有的java源代码。我正在使用java解析器(jarname-javaparser-core-2.5.1.jar)修改这个.java文件。 我需要添加一个else if语句块,例如: if(condition1){ //then statement }else if(condition2) { //then statement } else if(condition3) { //then statement }else { //else state
if(condition1){
//then statement
}else if(condition2) {
//then statement
} else if(condition3) {
//then statement
}else {
//else statement
}
需要添加带有条件3的else if语句。我该怎么做?您需要