Question: Sometime when we declare and initialize a variable, say we have an `int i =10;` then after some code this variable would be modified like this code bellow

```
public class reset {
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        int i = 10;
        int co = 1;
        while (co < 10) {
            i++;
            System.out.println(i + "*" + co + "=" + i * co);
            if (i == 99) {
                i = 11; //line 11
                co++;
            }
        }
    }
}

```

then at some point (here at line 11) we need to re-initialize then variable, wouldn't it be nice if we had any language feature doing it automatically instead for example 

```
reset:i

```

I think it's very beneficial for productivity, isn't it?

Answer: 
> 
> we need to re-initialize then variable, wouldn't it be nice if we had any language feature doing it automatically instead?
> 
> 
> 

No

> 
> I think it's very beneficial for productivity, isn't it?
> 
> 
> 

No

Resetting a variable to its start value is in many cases a sign that the scope of the variable is to large. So with clean code you hardly ever need such feature.

And of course every feature comes at the cost of complicating the language even more.
If you want to use the current Java language to do what you want to do, then simply provide a function in each class that you want to perform a "reset" like:

```
private void reset() {
    var = xxx;
    var2 = yyy;
    ...
}

```