Win a copy of Mastering Non-Functional Requirements this week in the Design forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Number returned by indexOf used in combination with substring  RSS feed

 
Glenn Gould
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Question: Why does the indexOf method start with the second 'I' in String "MINIMUM" instead of the first?


 
Paul Anilprem
Enthuware Software Support
Ranch Foreman
Posts: 4020
33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is as per the JavaDoc API description. Take a look at the second parameter to indexOf.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!