Bookmark Topic Watch Topic
  • New Topic

If-Else vs For  RSS feed

 
P. Sagdeo
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
Anyone know what is faster: A for loop running 200 times or 200 if-else statements? Thanks!
 
Marilyn de Queiroz
Sheriff
Posts: 9082
12
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post duplicate questions.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!