This lesson is a quick and dirty introduction to arrays in Java. We then consider the problem of placing an X into an appropriate square on a Tic-Tac-Toe board. Enjoy =)
i presume you cannot use a while loop in place of the for loop?? its just because for one of the assignments i had, we were only allowed to use a while loop in our tic tac toe game (mainly because he had not taught us the for loop yet :\
@B0nckers You can always use while, do while, and for loops interchangeably - they are there for the same purpose. The one you choose depends on what form makes it easiest to express your conditions. The three forms are interchangeable though. Some languages don't have for loops or do while loops for example (think assembly)
@B0nckers You can always use while, do while, and for loops interchangeably; they are there for the same purpose. The one you choose depends on what form makes it easiest to express your conditions. The three forms are interchangeable though. Some languages don't have for loops or do while loops for example (think assembly)
You can use while, do while and for loops interchangeably - they are there for the same purpose. The one you choose depends on what form makes it easiest to express your conditions. The three forms are interchangeable though. Some languages don't have for loops or do while loops for example (think assembly)
i presume you cannot use a while loop in place of the for loop?? its just because for one of the assignments i had, we were only allowed to use a while loop in our tic tac toe game (mainly because he had not taught us the for loop yet :\
B0nckers 10 months ago
@B0nckers You can always use while, do while, and for loops interchangeably - they are there for the same purpose. The one you choose depends on what form makes it easiest to express your conditions. The three forms are interchangeable though. Some languages don't have for loops or do while loops for example (think assembly)
zaychenok 10 months ago
@B0nckers You can always use while, do while, and for loops interchangeably; they are there for the same purpose. The one you choose depends on what form makes it easiest to express your conditions. The three forms are interchangeable though. Some languages don't have for loops or do while loops for example (think assembly)
zaychenok 10 months ago
@B0nckers You can always use while, do while, and for loops interchangeably;
zaychenok 10 months ago
You can use while, do while and for loops interchangeably - they are there for the same purpose. The one you choose depends on what form makes it easiest to express your conditions. The three forms are interchangeable though. Some languages don't have for loops or do while loops for example (think assembly)
zaychenok 10 months ago