Top Posters
Since Sunday
j
4
m
4
4
4
n
3
m
3
R
3
V
3
e
3
w
3
j
3
a
3
New Topic  
lstar1993 lstar1993
wrote...
Posts: 498
4 years ago
What is the printout of the following program?

public class Test {
public static void main(String[] args) {
int[][] values = {{3, 4, 5, 1 }, {33, 6, 1, 2}};
for (int row = 0; row < values.length; row++) {
java.util.Arrays.sort(values[row]);
for (int column = 0; column < values[row].length; column++)
System.out.print(values[row][column] + " ");
System.out.println();
}
}
}


▸ The program prints on row 3 4 5 1 33 6 1 2

▸ The program prints two rows 1 3 4 5 followed by 1 2 6 33

▸ The program prints one row 1 3 4 5 1 2 6 33

▸ The program prints two rows 3 4 5 1 followed by 33 6 1 2
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


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

lstar1993 Author
wrote...

4 years ago
This site is awesome
wrote...

Yesterday
Thanks
wrote...

2 hours ago
Correct Slight Smile TY
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  940 People Browsing
Related Images
  
 1578
  
 313
  
 270
Your Opinion
Do you believe in global warming?
Votes: 423