I am new to Java so please forgive me if the answer to this question is really obvious.
I am writing a method:
I receive the following error message: GetDynamicArray.java:34: incompatible types found : java.lang.String required: int
What I wish to do is return the array position of a string.
Could someone either explain to me why the array position of the string i.e. StudentName[position] is not being returned? Alternatively could someone point me in the right direction where I can read up some more on this?