You could initialize the final variable in the constructor. For example
public class Example{
final int value;
public Example(int val){
this.value = val;
}
}
Type: Posts; User: copeg
You could initialize the final variable in the constructor. For example
public class Example{
final int value;
public Example(int val){
this.value = val;
}
}