コード例 #1
0
 DisplayAllocator(int n, StringCanvas t, Allocator a) {
   alloc_ = a;
   available = n;
   display_ = t;
   display_.setcolor(Color.cyan);
   display();
 }
コード例 #2
0
 private void display() {
   display_.setString(
       "available= " + String.valueOf(available) + "  hired out= " + String.valueOf(hiredout));
 }