public void drawState(Graphics sc){
  sc.setColor(Color.black);
  E[] its=model.items();
  if (its == null) {
    return;
  }
  for (  E e : its) {
    drawElement(sc,e);
  }
}

public void drawState ( Graphics sc ) { sc . setColor ( Color . black ) ; E [ ] its = model . items ( ) ; if ( its == null ) { return ; } for ( E e : its ) { drawElement ( sc , e ) ; } }
draw the state by drawing each element .
