public String[] geefAlleTemplateNamen(String[][] templateLijst){
String[] lijst = new String[templateLijst.length];
for(int i = 0; i < templateLijst.length; i++){
lijst[i] = templateLijst[i][0];
}
return lijst;
}
The code above returns an array 'lijst'.
System.out.println(geefAlleTemplateNamen(templateLijst));
With this piece of code I tried to print that array, but it prints the location of the array. I know this can be solved by importing Java.util.Arrays, but I am not allowed to do this (school project), is there any way to solve this?
Thank you!