[Solved] C# Regex questions [closed]

[ad_1] You could try the below regex. @”.*?(?= = CreateObject)|(?<=MoveObject\().*?(?=,)” OR @”\S+?(?= = CreateObject)|(?<=MoveObject\().*?(?=,)” DEMO 3 [ad_2] solved C# Regex questions [closed]

[Solved] Reading Specific rows of an excel [closed]

[ad_1] You should try reading the documentation that comes with Apache POI! Taken straight from there: // Decide which rows to process int rowStart = Math.min(1, sheet.getFirstRowNum()); // 0 based not 1 based rows int rowEnd = Math.max(12, sheet.getLastRowNum()); for (int rowNum = rowStart; rowNum < rowEnd; rowNum++) { Row r = sheet.getRow(rowNum); int lastColumn … Read more

[Solved] Sorting two arrays in c++ [closed]

[ad_1] Just had to limit the inner loop to <9. The fixed code: for(int i=0;i<10;i++) //1st array, ascending { for(int j=0;j<9;j++) { if(array1[j]>array1[j+1]) { int temp=array1[j]; array1[j]=array1[j+1]; array1[j+1]=temp; } } } //Over for(int i=0;i<10;i++) //2nd array, descending { for(int j=0;j<9;j++) { if(array2[j]<array2[j+1]) { int temp=array2[j]; array2[j]=array2[j+1]; array2[j+1]=temp; } } } //Over Thank you guys! [ad_2] … Read more

[Solved] How to take the sum of elements from a for loop?

[ad_1] Before the loop, double total = 0; and then in the loop (after you calculate the amount) total += amt; and finally after the loop, something like System.out.printf(“The total is %.2f%n”, total); [ad_2] solved How to take the sum of elements from a for loop?