I am currently completing a project and am trying to create a menu. The menu itself works alright but when I try and link to the other java file that the method itself is in I get the error "the method method name is undefined for the type String". Below is the code that I am using to try and link to the method in the other java file.

Further to, below is the code of the 2 methods that I am trying to link to in the other java file. It is a requirement of the project to have 2 separate class files and to demonstrate how to use them both together but this part has got me stumped!

What's the exact error? Also please note that if (this.isOnLoan = false) is assigning false to isOnLoan and the whole expression is evaluated to false, always. You should use == (Or (better) if (!this.isOnLoan)).
–
Maroun MarounJul 23 '13 at 12:51

@MarounMaroun: compiler errors don't have a stacktrace. And if (!this.isOnLoan) is preferrable over boolean comparison.
–
jlordoJul 23 '13 at 12:53

@jlordo I didn't notice that's a compiler error. And of course it's preferable, I just wanted him to know that == is for equality.
–
Maroun MarounJul 23 '13 at 12:53

sc.nextLine() returns a String, and you are invoking movieID.borrowMovie(); on that. That's plain wrong. We could help more, if you can show exactly what you are trying to do.
–
Rohit JainJul 23 '13 at 12:54