Below Code with Setters and Getters:

```
public class DemoApp {
private int value;

public int getValue() {
    return value;
}

public void setValue(int value) {
    this.value = value;
}

public static void main(String[] args) {
    DemoApp demoApp = new DemoApp();
    demoApp.setValue(10);
    System.out.println("value is" + demoApp.getValue());
}
}

```

Below Code Is My own Code here I changed set to put and get to take While changing like this, is not a problem or it will give any future problem to me.

```
public class DemoApp {

private int value;

public int takeValue() {
    return value;
}

public void putValue(int value) {
    this.value = value;
}

public static void main(String[] args) {
    DemoApp demoApp = new DemoApp();
    demoApp.putValue(10);
    System.out.println("value is" + demoApp.takeValue());
}
} 

```