• Post Reply Bookmark Topic Watch Topic
  • New Topic

Selection Sort Algorithm Error  RSS feed

 
Recaip Sanli
Ranch Hand
Posts: 72
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I run this code, it gives the below error. Does anyone have any idea?




 
Knute Snortum
Sheriff
Posts: 4281
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Your indents say one thing, but the code says another.  Are you missing something?
 
Recaip Sanli
Ranch Hand
Posts: 72
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gotcha! It was brackets for the for loop. Sometimes we look into toughest part of the problem yet error is at simplest...
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Recaip Sanli wrote:. . . Sometimes we look into toughest part of the problem yet error is at simplest...
You have learnt something important there
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!