Top Posters
Since Sunday
L
4
d
4
3
k
3
k
3
j
3
k
3
b
3
f
3
b
3
d
3
h
3
New Topic  
asjstr asjstr
wrote...
Posts: 465
Rep: 8 0
4 years ago
What is the output of the following code?

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


▸ 2 5 9 13

▸ 3 6 10 14

▸ 1 3 8 12

▸ 4 5 6 7

▸ 1 2 3 4
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 54 times
1 Reply
Replies
Answer verified by a subject expert
GparkerGparker
wrote...
Posts: 383
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

asjstr Author
wrote...

4 years ago
Thanks
wrote...

Yesterday
I appreciate what you did here, answered it right Smiling Face with Open Mouth
wrote...

2 hours ago
Just got PERFECT on my quiz
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1045 People Browsing
Related Images
  
 322
  
 284
  
 146
Your Opinion