0 تصويتات
بواسطة
displays the number of elements in a Stack.
size( )
isEmpty( )
peek()

1 إجابة واحدة

0 تصويتات
بواسطة
size( ) - This method returns the number of elements in the Stack.
isEmpty( ) - This method checks if the Stack is empty and returns true if it is empty, otherwise it returns false.
peek() - This method returns the element at the top of the Stack without removing it.
مرحبًا بك إلى يزيد، حيث يمكنك طرح الأسئلة وانتظار الإجابة عليها من المستخدمين الآخرين.

اسئلة متعلقة

0 تصويتات
1 إجابة
0 تصويتات
1 إجابة
سُئل أبريل 15 بواسطة مجهول
0 تصويتات
1 إجابة
0 تصويتات
1 إجابة
سُئل مايو 20، 2024 بواسطة مجهول
0 تصويتات
1 إجابة
سُئل أبريل 29، 2024 بواسطة مجهول
...