Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 225 Bytes

File metadata and controls

14 lines (10 loc) · 225 Bytes

Final Fields

And just like regular final fields, you always need to give an initial value to global final fields.

final int x = 0;

void main() {
    IO.println(x);
}

Final fields of course cannot be changed.