Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: James Rivera   on Oct 28 In Java Category.

  
Question Answered By: Richie Smith   on Oct 28

Now we have an array 'shirt' with 22 slots (0-21). We could say

for (int i = 0; x < 22; x++)
{
System.out.println("The the value of shirt[" + i + "] is: " +
shirt[i]);
//Do some other stuff with shirt[i] si necessaire...
}

Share: