English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I know that an array stores a list of values in order. I want to make this array xArr[] that makes where i have it in this
for (i=1,i J=i-1
x[i]= J
How do I put this into java code? How do you set up an array of your owne?

2007-03-09 08:17:50 · 1 answers · asked by Michael M 4 in Computers & Internet Programming & Design

1 answers

int n = 100;
int[] counts = new int[n];

for(int i = 0; i < n; i++)
{
counts[i] = i - 1;
}

2007-03-09 08:49:20 · answer #1 · answered by Jason L 2 · 0 0

fedest.com, questions and answers