Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

electrical science Question 6 (1 point) Which statement will store the length of the dailyCosts ArrayList into len? (Don't just guess look it up!) a)

image text in transcribed

electrical science

Question 6 (1 point) Which statement will store the length of the dailyCosts ArrayList into len? (Don't just guess look it up!) a) int len - dailyCosts.length0: 0 b) int len-daiosts.sizeO c) int len dailyCosts.length; d) int len dailyCosts.size Question 7 (1 point) Which of the following statements are valid ways to determine if an ArrayList named mylist is empty (ie it contains no elements)? (Two are correct.) . a) if (myList.isEmpty0) System.out.printin" Empty'): b) if (myList.get(O) 0) System.out.printin("Empty"): c) if (myList.size) 0) System.out.printlnl"Empty"); d) if(myList.length == 0) System.out.printin( Empty

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions