Course Plan: Introducing One-dimentional Array

Copyright INFO: This article contains additional files: .PDF .DOCX
Files are for educational purposes only!
Please DO NOT upload files to any other websites or any cloud services. Provide a link to this page when sharing with others.
For more information, read policies in Help section.
License: This article is licensed under a Attribution 4.0 International.
File downloads here:
Please read copyright info before downloading.
Students' Handout Download >>>
Presentation Example >>>

Focus 1. What is an array?

An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed.

Focus 2. How to create an array in java?

String[] array = new String[] {“John”, “Mary”, “Bob”};

Focus 3. How to print an array.

Simple Array:

String[] array = new String[] {“John”, “Mary”, “Bob”};



[John, Mary, Bob]

Focus 4. How to get max/ min in an array?



Focus5. Check if a value is in an array

String[] stringArray = { “a”, “b”, “c”, “d”, “e” };

boolean b = Arrays.asList(stringArray).contains(“a”);