K
Koos Pol
Hello,
I'm trying to create a method "bar" with very limited
scope/visibilty, only existing within the scope of "foo".
The following code results in "Illegal start of expression"
class test {
public static void main(String args[]) {
}
private static void foo() {
private static bar() {
}
}
}
Apparently deep nesting of methods seems impossible. Is this true?
For the curious, bar() contains calculation logic only valid
within the context of foo().
Thanks,
Koos
I'm trying to create a method "bar" with very limited
scope/visibilty, only existing within the scope of "foo".
The following code results in "Illegal start of expression"
class test {
public static void main(String args[]) {
}
private static void foo() {
private static bar() {
}
}
}
Apparently deep nesting of methods seems impossible. Is this true?
For the curious, bar() contains calculation logic only valid
within the context of foo().
Thanks,
Koos