fork download
  1. import java.util.List;
  2.  
  3. /**
  4.  * Created by aaron on 11/8/2017.
  5.  */
  6. abstract class Selecter<ACTION> {
  7. abstract class State {
  8. public abstract List<ACTION> getActions();
  9. public abstract ACTION selectAction(List<ACTION> list, int selector);
  10. }
  11.  
  12. public ACTION searchAction(State state, int selector) {
  13. return state.selectAction(state.getActions(), selector);
  14. }
  15.  
  16. public static void main(String[] args) {}
  17. }
Success #stdin #stdout 0.05s 4386816KB
stdin
Standard input is empty
stdout
Standard output is empty