Poster asked what was needed inside the if, not input/output
It has input already, take your own adivce
without the code in the if, theres nothing to return, also they didnt say how the data is returned, only thats its output so a println maybe all thats needed, so a void type is fine.
Also a StringBuffer will be much better than a String.
|