Assuming a one dimensional integer array a[] has been declared and created with 100 elements:

for (int i = 0; i<=a.length; i++);
a = 5;

Assuming int b [] [] = new int [3] [3];
b[1, 1] = 5;

Strings students[] = {Pat, Tom, Mary, Anne};

Well, what do you think. We are not here to do your homework/quiz for you.

Assuming a one dimensional integer array a[] has been declared and created with 100 elements:

for (int i = 0; i<=a.length; i++);
a = 5;

Assuming int b [] [] = new int [3] [3];
b[1, 1] = 5;

Strings students[] = {Pat, Tom, Mary, Anne};

Where you the one who down voted masijade? For what, for telling the forum rules?
When you registered, you must have read and accepted the rules, and know that what you asked is against them.

If you have questions post them, but what you asked is for us to do your homework. Post what you think and we will correct you or give you enough explanations in order to understand and find the solution.


PS: To masijade: You got Down-Voted for your previous post and I Up-Voted. You see now why I don't like this anonymous with no explanation providing voting system. Hope I don't get down voted as well :)

I got your back.

I got your back.

Thanks mate.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.