Home Java Arrays

Arrays

6 min read
0
0
96

 

Array Index always start with 0 position.

Example 1

Output

Numbers 1 is 30
Numbers 2 is 25
Numbers 3 is 20
Numbers 4 is 15
Numbers 5 is 5

Example 2

Output

Group 1=30
Group 2=25
Group 3=20
Group 4=15
Group 5=5
Group 6=23
Group 7=48

Example 3

Output

John
James
Steve
Hume

Example 4

Example 5

Output

10
20
30
40
50
60
70
80
90
100

Example 6

Output

John is 15 Years Old
Jim is 20 Years Old
Peter is 23 Years Old
Anne is 21 Years Old
James is 28 Years Old

Two Dimensional Arrays

Example 1

Output

John
Java=75
Asp=78
Php=75
Python=95
NodeJS=97
_________________________________
James
Java=85
Asp=88
Php=75
Python=65
NodeJS=88

Example 2

Example 3

Example 4

Output

Anne
Java =75
———————————–
Peter
Java =55
Asp =65
Php =85
Python =75
NodeJS =90
Number of Subject 5
Number of Names 2

Example 5

Output

Number of Students = 8
Number of Courses = 5

 

 

    Load More Related Articles
    Load More By admin
    Load More In Java

    Leave a Reply

    Your email address will not be published.

    Check Also

    Node js Crud Application Step by Step

    this tutorials we are going to teach node js crud application how to do the basic crud ope…