PRO192_-_SU_2023_-_Block_5_-_FE_735.webp
successful_man

PRO192_-_SU_2023_-_Block_5_-_FE_735.webp

8
What is the output when you try to compile and run the following program?
import java.util.*;
Answer (Choose 1 answer)
A. 32425
B. 324252
C. 3245
D. 2 2 2 345
E. 2345
public class Main {
public static void main(String argv[]) {
TreeSet<Integer> t = new TreeSet<Integer>();
t.add(3);t.add(2);
t.add(4);
t.add(2);
t.add(5);t.add(2);
for(int x:t) System.out.print(x + " ");
System.out.println();
}

Thông tin

Category
PRO192
Thêm bởi
successful_man
Ngày thêm
Lượt xem
2,350
Lượt bình luận
12
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_SU_2023_-_Block_5_-_FE_735.webp
File size
51.3 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom