I think it would be helpful to see more code. I noticed that src is not declared in the code snippet. Is src used previously?
If it is used previously, it is possible that the buffer for src is not empty. For instance, .nextInt() will leave the enter character in the buffer because it is not an integer. If the enter character is still in the buffer .nextLine() will read it as an empty line. You could just try calling src.nextLine() before .println() and discard the input. That will clear the buffer.
Edit: Alright so this is the problem:
input=src.nextInt();
You are entering two things, the number and the eol character. The eol character is left in the buffer by .nextInt(), so the next time you call .nextLine() it reads the buffer, sees the eol character, and assumes you just inputted an empty line. Therefore print = "" here:
String print=src.nextLine();
I would use two scanners, one for ints, and one for strings. Or just clear the buffer before you call .nextLine().