method:empty ();return type:booleancontent:ใช้ตรวจสอบว่าใน stack ไม่มีข้อมูล ใช่หรือไม่example:Stack stack = new Stack(); if ( stack.empty () ) { System.out.println ( "stack empty" ); }