-->
当前位置:首页 > 题库

PROGRAMMING:Program fill in question 4

Luz5年前 (2021-05-10)题库469
Complete the following program, so that the program can get the same result as the output sample.

import java.util.*;
public class Main {
public static void main(String[] args) {
//Please add a line here
ts.add("cab");
ts.add("bac");
ts.add("bca");
ts.add("123");
ts.add("abc");
ts.add("acb");
ts.add("cba");
ts.add("cab");
//Please add a line here
while (it.hasNext()) {
System.out.println(it.next());
}
}
}

###Input format:
nothing
###Output format:
Multiline ordered string
###Input example:
```in
```
###Output example:
```out
one hundred and twenty-three
abc
acb
bac
bca
cab
cba
```







answer:If there is no answer, please comment