Android function
PHP example:
function HaHa($a = "Test")
{
print $a;
}
The question is how to do it in android...
public void someFunction(int ttt = 5)
{
// something
}
The solution above doesn't work, how can I do it?
Thanks!
No, Java does not support default values for function parameteres. There's an interesting post about borrowing language features here: http://java.dzone.com/news/default-argument-values-java