String[] nodes = {"a", "b", "c"};
String[] a = {"ax", "ay"};
String[] b = {"bx", "by"};
String[] c = {"cx", "cy"};
for (String n: nodes){
for (String elem: /* n, it should be sequentially a, b, c */){
System.out.print(elem);
}
}
I want to use the variable name to call each string array.
What I want as the result is, ax ay bx by cx cy
...
What should I do? or do I need to change its structure??