getlastName(" "); is returning a String and where in your program you are trying to get the returned value?
If it's not even compiling, copy & paste the full description of errors here.