Is it possible define method with in a method ?
for eg:
int dis(int a)
{
String d ;
float foo() {
}
}
Is it possible define method with in a method ?
for eg:
int dis(int a)
{
String d ;
float foo() {
}
}
I think it is not possible in Java.
There could be a function call within the definition of another function but not a function definition.
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.
-sutnarcha-
this is possible in c++, but not sure about java
hi
it's not possible to define method inside method..
java doesn't support inner metods