Click here to Skip to main content
15,885,869 members

Comments by UT7 (Top 59 by date)

UT7 24-Mar-24 23:28pm View    
@Tyler Bakeman, thanks for your response. I uninstalled m2e connector-wro4j 1.2.0, I tried to create another Spring project from Eclipse and I still got that error, although the project got created but the error still persist. I might just have to ignore the error, thanks a lot for your time and help.
UT7 21-Mar-24 22:19pm View    
@Tyler Bakeman, thanks a lot, I'm so sorry for late response. I have to m2e plugins installed from marketplace (1) Eclipse m2e - Maven support in Eclipse IDE (2) m2e connector-wro4j 1.2.0 . Please which of these should I uninstall ? Thanks for your time and help.
UT7 18-Dec-23 19:55pm View    
Okay, I get it now, thanks a lot.
UT7 18-Dec-23 19:41pm View    
@Richard MacCutchan, thanks a lot. I already have a while loop solution but I wanted to see if a for loop can also work. Thanks a lot.
UT7 18-Dec-23 19:36pm View    
@Dave Kreskowiak, thanks a lot. I already have a while loop solution but I wanted to see if it can also work with a for loop.
String str = "hello from lagos";
String guess = "l";
int index = str.indexOf(guess);
while(index >= 0) {
System.out.println(index);
index = str.indexOf(guess, index + 1);
}
Thanks a lot.