java:final

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
java:final [2017/02/16 13:37]
gthanos
java:final [2021/03/05 16:01]
gthanos
Line 5: Line 5:
 <code java> <code java>
 class ChessAlgorithm { class ChessAlgorithm {
-    enum ChessPlayer { WHITE, BLACK } 
     ...     ...
-    final ChessPlayer getFirstPlayer() { +    final String getFirstPlayer() { 
-        return ChessPlayer.WHITE;+        return "WHITE";
     }     }
     ...     ...
java/final.txt · Last modified: 2021/03/05 16:01 (external edit)