Help trying to understand modulo operation in circular array
问题 i have a small issue trying to figure out how a modulo operation is being calculated. I am building up a queue, so i have a circular array. i cannot figure out how this modulo operation works. Given q: an array of Character of 5 elements length, The MAX constant gives the max length of the array "5" rare is an int which represents the first available spot in the array q public void enqueue(Character c)throws FullQueueException{ if(size()== MAX -1){ //if only 1 place left, is full, throw exc