0% found this document useful (0 votes)
10 views11 pages

Module 2 Java Sample Problems

Uploaded by

ijttalabucon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views11 pages

Module 2 Java Sample Problems

Uploaded by

ijttalabucon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

COLLEGE OF ENGINEERING DEPARTMENT

Information Technology

Module 2 – MCO1
Arrays
DATA STRUCTURE AND ALGORITHM

Submitted By:

Aldrin Rey N. Taberara


Mark Lawrence P. Lacdao
Euri Christian F. Ripalda

Submitted To:
Salvador L. Flores Jr.
Assistant Professor II
Example 1: Access the Elements of an Array

Output:

Example 2: Change an Array Element

Output:

Example 3: Find How Many Elements in an Array


Output:

Example 4: Loop Through an Array

Output:
Example 5: Print Elements in Java Array

Output:

Example 6: Print Array in Java

Output:
Example 7: Print Array using array toString

Output:

Example 8: Basic Sorting an Array Java


Output:

Example 9: Print TwoD-Array in Java

Output:
Example 10: How to Insert Elements of 2D Arrays in Java

Output:
Example 11: How to Update Elements of 2D Arrays in Java

Output:
Example 12: Methods to Print Array String Two Dimensional Array in Java

Output:

Example 13: Methods to Print 2D Array using array.deepToString()


Output:

Example 14: Methods to Print 2D Array in Java using loops

Output:

Documentation:

You might also like