Wednesday, December 21, 2011

How do you return nothing (void) in a java function?

Void is a data type. You ushually "return null;" if the the function has a return type and you do not whant to return anything. If the function is defined to return void then just use "return;"

0 comments:

Post a Comment