Hallo,
Leute brauche Erklärung:
Code->
Warum geht das Program nicht in das erste if und uch nicht in das zweite?
Leute brauche Erklärung:
Code->
Java:
final String dataRegex="(?i)(^|;|\\%then|\\%else)\\s*DATA\\s+[^ =+].+?(?=\\s|;)";
final String procRegex="(?i)(^|;|\\%then|\\%else)\\s*PROC\\s+[^ =+].+?(?=\\s|;)";
Pattern paternData=Pattern.compile(dataRegex);
Pattern paternProc=Pattern.compile(procRegex);
Matcher matchData=paternData.matcher(temp);
Matcher matchProc=paternProc.matcher(temp);
if(!matchData.find()&&!matchProc.find()){
System.out.println("nichts gefunden");}else{
for(int i=0;i<temp.length();i++){
matchData=paternData.matcher(temp.substring(i,temp.length()));
matchProc=paternProc.matcher(temp.substring(i,temp.length()));
if(!matchData.find()&&!matchProc.find()) {
break;
}else {}
if(matchData.find() && !matchProc.find()){....usw