Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Added: May 9, 2021 5:29 PM
Views: 503
Tags: no tags
  1.  public void validate(){
  2.  
  3.         //Schleife immer
  4.         for (Choice c :
  5.                 choices) {
  6.             if(choices.size() < 2 ){
  7.                 throw new IllegalArgumentException("Fehler BLUB");
  8.             }
  9.         }
  10.     }