تسجيل الدخول
تذكر
تسجيل
الأسئلة
الأسئلة غير المجابة
الوسوم
الأعضاء
اطرح سؤالاً
اطرح سؤالاً
size() tests if this stack is empty.صواب خطأ
0
تصويتات
سُئل
أبريل 15
بواسطة
مجهول
size() tests if this stack is empty.صواب خطأ
من فضلك
سجل دخولك
أو
قم بتسجيل حساب
للإجابة على هذا السؤال
1
إجابة واحدة
0
تصويتات
تم الرد عليه
أبريل 15
بواسطة
مجهول
خطأ.
size() method does not test if the stack is empty. It simply returns the number of elements currently in the stack. To check if the stack is empty, you should use the isEmpty() method.
تعليقك على هذه الإجابة:
اسمك الذي سيظهر (اختياري):
أعلمني على هذا البريد الإلكتروني إذا تم إضافة تعليق بعدي:
أعلمني على بريدي الإلكتروني إذا تم إضافة تعليق بعدي
نحن نحرص على خصوصيتك: هذا العنوان البريدي لن يتم استخدامه لغير إرسال التنبيهات.
مرحبًا بك إلى يزيد، حيث يمكنك طرح الأسئلة وانتظار الإجابة عليها من المستخدمين الآخرين.
اسئلة متعلقة
0
تصويتات
1
إجابة
size() tests if this stack is empty.صواب خطأ 0.5 درجات
سُئل
أبريل 15
بواسطة
مجهول
0
تصويتات
1
إجابة
returns true if the stack is empty and returns false if the stack contains elements. peek() isEmpty( ) size( )
سُئل
أبريل 15
بواسطة
مجهول
+1
تصويت
1
إجابة
ترجم حلول Ai The smaller the object, the smaller the surface area will be. This statement is generally true. In most cases, as an object decreases in size, its surface area will also decrease. This is because surface area is directly related to the physical dimensions of an object. For example, imagine a cube that is 1cm in size. The surface area of this cube would be 6 square centimeters. If the cube were to be reduced in size to 0.5cm, its surface area would decrease to 1.5 square centimeters. However, it is important to note that this relationship may not hold true in all cases, as the shape and structure of an object can also affect its surface area. Additionally, certain properties of objects, such as fractals, can lead to more complex relationships between size and surface area.
سُئل
مايو 23، 2024
بواسطة
مجهول
0
تصويتات
1
إجابة
Stack st=new Stack(); st.push("Saudi"); st.push("Brazil"); st.push("Canada"); System.out.println("Size of stack is: " +st.size());What is output of code? a.Size of stack is: 3 b.Size of stack is: -1 c.Size of stack is: 2 d.None.
سُئل
أبريل 22
بواسطة
مجهول
0
تصويتات
1
إجابة
Stack st=new Stack(); st.push("Saudi"); st.push("Brazil"); st.push("Canada"); System.out.println("Size of stack is: " +st.size());What is output of code? Size of stack is: 3 Size of stack is: -1 Size of stack is: 2 None. 0.5 points
سُئل
مارس 6
بواسطة
مجهول
...