Skip to main content

Java Arrays

  • Chapter
  • First Online:
Programming in Two Semesters

Part of the book series: Texts in Computer Science ((TCS))

  • 1844 Accesses

Abstract

In Chaps. 6 and 7 we showed you a number of Python data types such as lists and dictionaries that can be used to hold collections of values.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Of course this size should not be a negative value. A negative value will cause an error in your program. We will discuss these kinds of errors further in Chap. 20.

  2. 2.

    The enhanced for loop also works with other classes in Java, which act as alternatives to arrays. We will explore some of these classes in Chap. 21.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Quentin Charatan .

1 Electronic supplementary material

Below is the link to the electronic supplementary material.

Supplementary file1 (ZIP 4 kb)

Rights and permissions

Reprints and permissions

Copyright information

© 2022 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Charatan, Q., Kans, A. (2022). Java Arrays. In: Programming in Two Semesters. Texts in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-031-01326-3_16

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-01326-3_16

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-01325-6

  • Online ISBN: 978-3-031-01326-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics