You can replace your entire array with an int variable called test. You are using the array as a single variable. There is no advantage to using the array there.