Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Examine the following statements which compares the syntax differences between c

ID: 3583206 • Letter: E

Question

Examine the following statements which compares the syntax differences between class ArrayList & regular array for inserting an object. String[] an Array = new String [20];//Regular array ArrayLsit aList = new ArrayList (20)//Data structure array ArrayList//statements anArray[0] = "NYiT CS Department";//insert data to regular array aList.set(0, "NYiT CS Department");//insert data to aList Will Line(1) & Line(2) create space each for 20 elements? Where does Line(3) insert the object to? In Line(4), where does method set come from? You are designing an event driven program using buttons, labels, etc., (refer to CH10 PPT. or book cd6P783 ed7p799 - 801) where these Graphics components should be placed? what is the class name that you can instantiate buttons from? what method that you need to associate the button with for event responses? what is the build-in method name to response to a button click event?

Explanation / Answer

Ans)

29.1)Line1) [ x ] Yes

29.2)Line2) [ x ] index 0

29.3)Line3) [ x ] index 0

29.4)Line4) [ x ] from Array List

27.1)Line1) [ x ] Frame

27.2)Line2) [ x ] JButton

27.3)Line3) [ x ] addActionListener

_______________Thank You

27.4)Line4) [ x ] actionPerformed

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote