Assume the following:
private static boolean A()
{
int parsedUntil = 0;
...
...
...
}
Is parsedUntil considered to be a static variable? I noticed that I can’t declare it as static inside this static function.
Follow-up question: I read that a static variable will only be initialized once. Does that mean the first time I call function A() the value will be set to zero, but every other time I call A(), that row is omitted?
No, it’s not a static variable. It’s a local variable. Any variable declared in a method is a local variable. If you want a static variable, you have to declare it outside the method:
There’s no way of declaring a static variable which can only be used within a single method.