How do you use multiple arrays?

From ggc

Jump to: navigation, search

You can use multiple arrays because they each have different names. For example, if you have a method with two arrays as parameters:

public int getMax(int[] a, int[] b)

You can use each of them by refering to them by name. For example,

a[0]=5;

puts 5 in the first position of array a Whereas

b[0]=5;

puts 5 in the first position of array b. Does this answer the question?





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter