Top Posters
Since Sunday
5
k
4
c
4
M
3
t
3
i
3
B
3
k
3
m
3
c
3
o
3
l
3
New Topic  
lbelcher lbelcher
wrote...
Posts: 482
4 years ago
What is the output of the following code?

public class Test {
public static void main(String[] args) {
int[][] matrix =
{{1, 2, 3, 4, 5},
{4, 5, 6, 4, 7},
{8, 9, 10, 11},
{12, 13, 14, 15}};
for (int i = 0; i < matrix.length; i++)
System.out.print(matrix[i][3] + " ");
}
}


▸ 2 5 9 13

▸ 1 2 3 4

▸ 4 5 6 7

▸ 1 3 8 12

▸ 4 4 11 15
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 48 times
1 Reply
Replies
Answer verified by a subject expert
h00304413h00304413
wrote...
Posts: 411
4 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here

Related Topics

lbelcher Author
wrote...

4 years ago
This site is awesome
wrote...

Yesterday
Thanks for your help!!
wrote...

2 hours ago
Good timing, thanks!
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  936 People Browsing
Related Images
  
 2124
  
 371
  
 83
Your Opinion
What's your favorite funny biology word?
Votes: 336