Java: how do I point at an array item through a variable?
How do I point at an array item through a variable? Example:
String[] names;
int test = 10;
String myName = names[test];
The purpose is to get the same number item from 2 different arrays, for a
username/password program.
No comments:
Post a Comment