susmaria
susmaria
JCHJava Community | Help. Code. Learn.
Created by susmaria on 4/17/2025 in #java-help
java loop question
I’ve encountered this because instead of processing the next entry from tblJCLPatch, im stuck in one entry looping all over again
45 replies
JCHJava Community | Help. Code. Learn.
Created by susmaria on 4/17/2025 in #java-help
java loop question
After adding new values at newpatchList() the iteration continues until a) all entries from tblJCLPatch that satisfy the condition are processed b) all lines on the jclF.getOLineList are checked After that the newpatchList is set. There would only be one newpatchList its just the values are appended
45 replies
JCHJava Community | Help. Code. Learn.
Created by susmaria on 4/17/2025 in #java-help
java loop question
May i know which break; should i remove/move?
45 replies
JCHJava Community | Help. Code. Learn.
Created by susmaria on 4/17/2025 in #java-help
java loop question
I’ve identified the cause of error is it that if there are two entries from tblJCLPatch needed for the process, only the first one is being processed by the whole method. After satisfying the while snippet, it does not proceed on processing the next entry and stuck at the first entry making the process infinite loop.
45 replies
JCHJava Community | Help. Code. Learn.
Created by susmaria on 4/17/2025 in #java-help
java loop question
One more thing is that after processing this snippet while (!patchFile.getOLineList().get(j).code().startsWith("*TobeJclEnd")) { JCLCode c = (JCLCode) patchFile.getOLineList().get(j); newpatchList.add(c); j++; } break; I would like to return from the top and use the next value of the ‘row’ from NativeFiles.tblJCLPatch. this is why i said earlier the setOLineList happens to not been affected because it wasnt accessed yet bc of the infinite looping
45 replies
JCHJava Community | Help. Code. Learn.
Created by susmaria on 4/17/2025 in #java-help
java loop question
List<STRING>
45 replies
JCHJava Community | Help. Code. Learn.
Created by susmaria on 4/17/2025 in #java-help
java loop question
Its the last part of the method. After processing all lines from jclf.getOLineList. It will then proceed to set the new list. So far it hasnt affected the logic yet. Its just after all the breaks, it doesnt continue to the next value of NativeFiles.tblJCLPatch()
45 replies
JCHJava Community | Help. Code. Learn.
Created by susmaria on 4/17/2025 in #java-help
java loop question
List of rows contains text like ‘STEP’, ‘S#’.
45 replies
JCHJava Community | Help. Code. Learn.
Created by susmaria on 4/17/2025 in #java-help
java loop question
My issue is after satisfying the while logic highlighted, it goes back to the first loop but the ‘row’ value doesnt change. Plus its causing now an infinite loop
45 replies