There is no
printData
method in Java SDK (that I know of), the only way to print content to the logs is using the
System.out
.
System (Java Platform SE 7 )[
^]
Maybe, if you can show the code we can better help. I am thinking this is a member method of a class that you might have defined that "internally" calls the
System.out.println()
method.
Secondly, the
return
is a basic control statement that "returns" the control to the caller of this method and passes the value as a result of this method. If called without a value (as in a
void
method) then it just returns the control and doesn't provide any value.
See this for more on this topic:
Returning a Value from a Method (The Java™ Tutorials > Learning the Java Language > Classes and Objects)[
^]