Difference between revisions of "More With Arrays"

From CompSciWiki
Jump to: navigation, search
 
(Deleted Solutions Page)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Introduction==
+
{{1010Chapter|ChapterNum=8
You've seen how arrays can be used to store data in an organized way. Unlike primitive variables, which can store only one value, an array can store many values. You've also learned how to use refer to array elements, use for loops to process and copy arrays. Now, this chapter will show you even more algorithms, or tasks, you can use with arrays. Specifically, this chapter will cover:
+
|Picture=Wiki_array03.jpg
 +
|Introduction=In the previous chapter, you learned what at array is and their advantage over primitive data types. You also learned how to initialize, declare and modify arrays. This chapter will show you how to pass arrays to a method, work with partially filled arrays, store strings in arrays, search and sort arrays, and work with parallel arrays.
  
*==Passing Arrays using Methods==  
+
|Body=
*==Working with Partially Filled Arrays==
+
==[[Passing Arrays as Parameters]]==  
*==Arrays of Strings==
+
==[[Partially Filled Arrays]]==
*==Searching Arrays==  
+
==[[Arrays of Strings]]==
*==Sorting Arrays==  
+
==[[Searching Arrays]]==  
*==Selection Sort==  
+
==[[Sorting Arrays]]==  
*==Binary Sort==  
+
==[[Parallel Arrays]]==  
*==Review Questions and Exercises==
+
==[[More With Arrays Review Questions and Exercises|Review Questions and Exercises]]==
 +
 
 +
 
 +
 
 +
|PChapterNum=7
 +
|PChapterLink=[[Arrays]]
 +
|NChapterNum=9
 +
|NChapterLink=[[Java In-depth]]
 +
}}
 +
 
 +
{{Category:COMP 1010}}

Latest revision as of 02:16, 6 December 2011


Wiki 1010 Table of Contents

Wiki array03.jpg

Chapter 8

In the previous chapter, you learned what at array is and their advantage over primitive data types. You also learned how to initialize, declare and modify arrays. This chapter will show you how to pass arrays to a method, work with partially filled arrays, store strings in arrays, search and sort arrays, and work with parallel arrays.

  Write a Program a Day Case Studies

Passing Arrays as Parameters

Partially Filled Arrays

Arrays of Strings

Searching Arrays

Sorting Arrays

Parallel Arrays

Review Questions and Exercises




Chapter 7: Arrays Table of Contents Chapter 9: Java In-depth


Template loop detected: